Files
solace-bg-dubai/frontend/next.config.js
defiQUG a03417be98
All checks were successful
CI / lint-and-test (push) Successful in 9m52s
chore: consolidate local WIP (repo cleanup 20260707)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 09:41:38 -07:00

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;