forked from titaniumnetwork-dev/Ludicrous
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
45 lines (41 loc) · 754 Bytes
/
next.config.js
File metadata and controls
45 lines (41 loc) · 754 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/** @type {import('next').NextConfig} */
const withPWA = require('next-pwa')({
dest: 'public',
swSrc: 'service-worker.js',
sw: 'arc-sw.js',
fallbacks: {
},
cacheOnFrontEndNav: true,
mode: 'production'
});
const nextConfig = withPWA({
reactStrictMode: true,
i18n: {
locales: ["en"],
defaultLocale: "en",
},
api: {
responseLimit: false,
externalResolver: true,
bodyParser: false,
},
trailingSlash: true,
async headers() {
return [
{
source: '/:path*',
headers: [
{
key: 'Access-Control-Allow-Origin',
value: '*',
},
],
}
]
},
async rewrites() {
return [
]
},
});
module.exports = nextConfig;