generated from DTS-STN/next-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
next.config.js
67 lines (67 loc) · 1.59 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
module.exports = {
i18n: {
locales: ['en', 'fr', 'default'],
defaultLocale: 'default',
},
reactStrictMode: true,
outputStandalone: true,
//
async headers() {
return [
{
source: '/:path*',
headers: [
{ key: 'X-DNS-Prefetch-Control', value: 'on' },
{ key: 'X-Frame-Options', value: 'DENY' },
{ key: 'X-Content-Type-Options', value: 'nosniff' },
{ key: 'Referrer-Policy', value: 'origin-when-cross-origin' },
{
key: 'Strict-Transport-Security',
value: 'max-age=63072000; includeSubDomains; preload',
},
],
},
]
},
//
async redirects() {
return [
{
source: '/interact',
destination: '/interact.html',
permanent: false,
},
{
source: '/en/index',
destination: '/en',
permanent: true,
locale: false,
},
{
source: '/fr/index',
destination: '/fr',
permanent: true,
locale: false,
},
]
},
async rewrites() {
return [
{
source: '/fr/resultats',
destination: '/fr/results',
locale: false,
},
]
},
env: {
ADOBE_ANALYTICS_URL: process.env.ADOBE_ANALYTICS_URL,
NEXTAUTH_URL: process.env.NEXTAUTH_URL,
APP_ENV: process.env.APP_ENV,
NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET,
NEXT_AUTH_USERNAME: process.env.NEXT_AUTH_USERNAME,
NEXT_AUTH_PASSWORD: process.env.NEXT_AUTH_PASSWORD,
NEXT_BUILD_DATE: process.env.NEXT_BUILD_DATE,
LOGGING_LEVEL: process.env.LOGGING_LEVEL,
},
}