-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnext.config.mjs
36 lines (33 loc) Β· 1.01 KB
/
next.config.mjs
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
import { createJiti } from "jiti";
import { fileURLToPath } from "node:url";
// Validate env variables at build time
const jiti = createJiti(fileURLToPath(import.meta.url));
await jiti.import("./src/env");
/** @type {import('next').NextConfig} */
const nextConfig = {
// Disable React strict mode
reactStrictMode: false,
// To enhance the experience with self-hosted(use Docker) services without Vercel
// IMPORTANT: After enabling this option, users cannot build on Windows. To build on Windows, please use WSL2
output: "standalone",
experimental: {
// Enable typed routes, see https://nextjs.org/docs/app/building-your-application/configuring/typescript#statically-typed-links
typedRoutes: true,
},
images: {
remotePatterns: [
// 302 File Server
{
protocol: "https",
hostname: "file.302.ai",
},
{
protocol: "https",
hostname: "file.302ai.cn"
}
// Add more remote patterns here
// ...
],
},
};
export default nextConfig;