-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnext.config.js
37 lines (36 loc) · 1.05 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
const withTM = require('next-transpile-modules')(['fitty', 'react-fitty', 'react-tilty']);
/** @type {import('next').NextConfig} */
const config = {
images: {
domains: ['avatars.githubusercontent.com', 'lh3.googleusercontent.com'],
},
headers: async function() {
return [
{
// Apply these headers to all routes in your application.
source: '/:path*',
headers: [
{
key: 'X-DNS-Prefetch-Control',
value: 'on'
},
{
key: 'Strict-Transport-Security',
value: 'max-age=63072000; includeSubDomains; preload'
},
],
},
]
},
i18n: {
// These are all the locales you want to support in
// your application
locales: ['en-US'],
// This is the default locale you want to be used when visiting
// a non-locale prefixed path e.g. `/hello`
defaultLocale: 'en-US',
// Automatically redirect based on the user's preferred locale
localeDetection: false,
},
}
module.exports = withTM(config);