-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.js
More file actions
39 lines (34 loc) · 1.02 KB
/
Copy pathnext.config.js
File metadata and controls
39 lines (34 loc) · 1.02 KB
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
33
34
35
36
37
38
39
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
// Do not expose API keys to the browser
// The API key should only be used in server-side API routes
// IMPORTANT: Disable ESLint and TypeScript checking during build
eslint: {
// This disables ESLint during build
ignoreDuringBuilds: true,
},
// Disable TypeScript checking during build
typescript: {
// This disables TypeScript checking during build
ignoreBuildErrors: true,
},
// Removed forceSwcTransforms as it's not compatible with Turbopack
experimental: {
// Empty experimental section - can be used for future compatible options
},
// Handling Node.js modules
webpack: (config, { isServer }) => {
if (!isServer) {
// Don't resolve 'fs' module on the client to prevent this error
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
path: false,
os: false,
};
}
return config;
},
};
module.exports = nextConfig;