-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.mjs
44 lines (40 loc) · 1.24 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
37
38
39
40
41
42
43
44
import { createJiti } from "jiti";
import createNextIntlPlugin from "next-intl/plugin";
import { fileURLToPath } from "node:url";
const withNextIntl = createNextIntlPlugin();
// 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",
},
// Picsum Photos (for development)
{
protocol: "https",
hostname: "picsum.photos",
},
{
protocol: "https",
hostname: "imagedelivery.net",
},
// Add more remote patterns here
// ...
],
},
};
export default withNextIntl(nextConfig);