-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
32 lines (31 loc) · 848 Bytes
/
next.config.js
File metadata and controls
32 lines (31 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{
protocol: 'https',
hostname: '**.supabase.co',
},
],
},
experimental: {
serverActions: {
bodySizeLimit: '2mb',
},
},
webpack: (config) => {
// Prefer browser field so AlaSQL resolves to its browser bundle (no react-native deps).
config.resolve.mainFields = ['browser', 'module', 'main'];
config.resolve.alias = {
...(config.resolve.alias || {}),
// Stub out AlaSQL's filesystem plugin and react-native deps so they are not bundled for web
'alasql/dist/alasql.fs.js': false,
'alasql.fs.js': false,
'react-native-fetch-blob': false,
'react-native-fs': false,
'react-native': false,
};
return config;
},
}
module.exports = nextConfig