-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
29 lines (26 loc) · 799 Bytes
/
next.config.js
File metadata and controls
29 lines (26 loc) · 799 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
/* eslint-disable no-underscore-dangle */
import path from 'path';
import { fileURLToPath } from 'url';
// Convert the URL to a directory path
const __dirname = path.dirname(fileURLToPath(import.meta.url));
/**
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
* for Docker builds.
*/
await import('./src/env.js');
/** @type {import("next").NextConfig} */
const config = {
sassOptions: {
includePaths: [path.join(__dirname, 'node_modules'), path.join(__dirname, 'src/styles')],
},
experimental: {
reactCompiler: true,
ppr: true,
},
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors.
ignoreDuringBuilds: true,
},
};
export default config;