-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnext.config.mjs
More file actions
executable file
·35 lines (33 loc) · 855 Bytes
/
Copy pathnext.config.mjs
File metadata and controls
executable file
·35 lines (33 loc) · 855 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
import createNextIntlPlugin from "next-intl/plugin";
const withNextIntl = createNextIntlPlugin("./src/app/i18n/request.ts");
/** @type {import('next').NextConfig} */
const nextConfig = {
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
fs: false,
path: false,
crypto: false,
};
}
config.experiments = {
asyncWebAssembly: true,
syncWebAssembly: true,
layers: true,
};
return config;
},
output: "standalone",
// Disable streaming metadata for all user agents so metadata is rendered in <head>
htmlLimitedBots: /.*/,
async redirects() {
return [
{
source: "/stats/:match*",
destination: "https://stats.tatli.me/:match*",
permanent: true,
},
];
},
};
export default withNextIntl(nextConfig);