-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
33 lines (32 loc) · 981 Bytes
/
next.config.js
File metadata and controls
33 lines (32 loc) · 981 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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
output: 'standalone', // Enable standalone build for Docker
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'www.monotype.com',
pathname: '/sites/default/files/**',
},
],
},
// Skip static generation for pages that need database access
experimental: {
// This prevents Next.js from trying to statically generate pages during build
workerThreads: false,
cpus: 1,
},
// Disable static page generation for all pages (they'll be server-rendered)
// This is necessary because our pages depend on database calls
typescript: {
// Allow build to complete even if there are type errors
// (useful for CI/CD, but errors will still be shown)
ignoreBuildErrors: false,
},
eslint: {
// Don't run ESLint during build (for faster builds)
ignoreDuringBuilds: true,
},
}
module.exports = nextConfig