initial checkin
This commit is contained in:
42
next.config.js
Normal file
42
next.config.js
Normal file
@@ -0,0 +1,42 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
output: 'export',
|
||||
images: {
|
||||
unoptimized: true,
|
||||
},
|
||||
trailingSlash: true,
|
||||
webpack: (config) => {
|
||||
config.resolve.fallback = {
|
||||
...config.resolve.fallback,
|
||||
fs: false,
|
||||
net: false,
|
||||
tls: false,
|
||||
crypto: false,
|
||||
stream: false,
|
||||
http: false,
|
||||
https: false,
|
||||
zlib: false,
|
||||
path: false,
|
||||
os: false,
|
||||
'pino-pretty': false,
|
||||
'@react-native-async-storage/async-storage': false,
|
||||
'react-native': false,
|
||||
};
|
||||
|
||||
config.externals.push(
|
||||
'pino-pretty',
|
||||
'lokijs',
|
||||
'encoding'
|
||||
);
|
||||
|
||||
// Ignore specific warnings
|
||||
config.ignoreWarnings = [
|
||||
/Failed to parse source map/,
|
||||
/Critical dependency: the request of a dependency is an expression/,
|
||||
];
|
||||
|
||||
return config;
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = nextConfig;
|
||||
Reference in New Issue
Block a user