forked from xintaofei/codeg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
37 lines (34 loc) · 800 Bytes
/
next.config.ts
File metadata and controls
37 lines (34 loc) · 800 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
import type { NextConfig } from "next"
import createNextIntlPlugin from "next-intl/plugin"
const isProd = process.env.NODE_ENV === "production"
const internalHost = process.env.TAURI_DEV_HOST || "localhost"
const withNextIntl = createNextIntlPlugin({
requestConfig: "./src/i18n/request.ts",
experimental: {
messages: {
path: "./src/i18n/messages",
format: "json",
locales: [
"en",
"zh-CN",
"zh-TW",
"ja",
"ko",
"es",
"de",
"fr",
"pt",
"ar",
],
precompile: true,
},
},
})
const nextConfig: NextConfig = {
output: "export",
images: {
unoptimized: true,
},
assetPrefix: isProd ? undefined : `http://${internalHost}:3000`,
}
export default withNextIntl(nextConfig)