All checks were successful
CI / lint-and-test (push) Successful in 9m52s
Co-authored-by: Cursor <cursoragent@cursor.com>
36 lines
763 B
JavaScript
36 lines
763 B
JavaScript
const path = require("path");
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
webpack: (config, { isServer }) => {
|
|
config.resolve.fallback = {
|
|
...config.resolve.fallback,
|
|
fs: false,
|
|
net: false,
|
|
tls: false,
|
|
};
|
|
|
|
config.resolve.alias = {
|
|
...config.resolve.alias,
|
|
"@react-native-async-storage/async-storage": path.join(
|
|
__dirname,
|
|
"lib/stubs/async-storage.js"
|
|
),
|
|
"pino-pretty": false,
|
|
};
|
|
|
|
if (!isServer) {
|
|
config.externals = config.externals || [];
|
|
if (Array.isArray(config.externals)) {
|
|
config.externals.push("pino-pretty", "lokijs", "encoding");
|
|
}
|
|
}
|
|
|
|
return config;
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|
|
|