-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
41 lines (38 loc) · 1000 Bytes
/
next.config.js
File metadata and controls
41 lines (38 loc) · 1000 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
33
34
35
36
37
38
39
40
41
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
output: 'export',
distDir: 'out',
// Set base path if needed, remove or adjust if deploying to root domain
// basePath: '',
images: {
unoptimized: true, // Required for static export
remotePatterns: [
{
protocol: 'https',
hostname: 'res.cloudinary.com',
},
],
},
// If you have public resources with special handling needs
assetPrefix: process.env.NODE_ENV === 'production' ? '/' : '',
// Skip type checking during build
typescript: {
ignoreBuildErrors: true,
},
eslint: {
ignoreDuringBuilds: true,
},
// Enable trailing slash to prevent mismatches in exported static files
trailingSlash: true,
// Add webpack configuration for .jsonc files
webpack: (config) => {
config.module.rules.push({
test: /\.jsonc$/,
type: 'json',
use: ['json-loader']
});
return config;
},
};
export default nextConfig;