-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathnext.config.js
More file actions
28 lines (26 loc) · 794 Bytes
/
next.config.js
File metadata and controls
28 lines (26 loc) · 794 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
const withPWA = require("next-pwa");
const { RocketcrabMode } = require("./dist/types/enums");
const IS_DEV = process.env.NODE_ENV === "development";
const DOMAIN = IS_DEV ? "localhost" : "rocketcrab.com";
module.exports = withPWA({
dest: "public",
})({
i18n: {
locales: [RocketcrabMode.MAIN, RocketcrabMode.KIDS],
defaultLocale: RocketcrabMode.MAIN,
localeDetection: false,
domains: [
{
// rocketcrab.com
domain: DOMAIN,
defaultLocale: RocketcrabMode.MAIN,
},
{
// kids.rocketcrab.com
domain: "kids." + DOMAIN,
defaultLocale: RocketcrabMode.KIDS,
},
],
},
transpilePackages: ["swiper"],
});