-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
32 lines (30 loc) · 943 Bytes
/
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,
compiler: {
styledComponents: true
},
i18n: {
// These are all the locales you want to support in your application
locales: ["en", "hr"],
// This is the default locale you want to be used when visiting a non-locale prefixed path e.g. `/hello`
defaultLocale: "en"
// 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"
// },
// {
// domain: "example.fr",
// defaultLocale: "fr",
// // an optional http field can also be used to test
// // locale domains locally with http instead of https
// http: true
// }
// ]
}
};
module.exports = nextConfig;