forked from baotlake/office-website
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnext.config.ts
More file actions
49 lines (46 loc) · 991 Bytes
/
next.config.ts
File metadata and controls
49 lines (46 loc) · 991 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
38
39
40
41
42
43
44
45
46
47
48
49
import type { NextConfig } from "next";
import createNextIntlPlugin from "next-intl/plugin";
const withNextIntl = createNextIntlPlugin({
experimental: {
srcPath: "./",
extract: {
sourceLocale: "en",
},
messages: {
path: "./messages",
format: "json",
locales: ["en", "es", "zh-CN", "zh-TW", "ja", "ko"],
},
},
});
const nextConfig: NextConfig = {
/* config options here */
output: "export",
async headers() {
return [
{
source: "/x2t/x2t.wasm",
headers: [
{
key: "Content-Encoding",
value: "br",
},
],
},
{
source: "/x2t-:suffix/:path*",
headers: [
{
key: "Content-Encoding",
value: "br",
},
{
key: "Cache-Control",
value: "public, max-age=31556952, immutable",
},
],
},
];
},
};
export default withNextIntl(nextConfig);