-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
32 lines (31 loc) · 1.02 KB
/
next.config.js
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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true, // Recommended for the `pages` directory, default in `app`.
swcMinify: true,
experimental: {
// Required:
appDir: true,
// forceSwcTransforms: true,
},
i18n: {
// These are all the locales you want to support in
// your application
locales: ["en-US", "es"],
// This is the default locale you want to be used when visiting
// a non-locale prefixed path e.g. `/hello`
defaultLocale: "es",
// This is a list of locale domains and the default locale they
// should handle (these are only required when setting up domain routing)
// Note: subdomains must be included in the domain value to be matched e.g. "fr.example.com".
domains: [
{
domain: "example.com",
defaultLocale: "en-US",
// an optional http field can also be used to test
// locale domains locally with http instead of https
http: true,
},
],
},
};
module.exports = nextConfig;