Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
titaniumnetwork-dev
GitHub Repository: titaniumnetwork-dev/Ludicrous
Path: blob/main/next.config.js
1222 views
1
/** @type {import('next').NextConfig} */
2
const withPWA = require('next-pwa')({
3
dest: 'public',
4
swSrc: 'service-worker.js',
5
sw: 'arc-sw.js',
6
fallbacks: {
7
8
},
9
cacheOnFrontEndNav: true,
10
mode: 'production'
11
});
12
13
const nextConfig = withPWA({
14
reactStrictMode: true,
15
i18n: {
16
locales: ["en"],
17
defaultLocale: "en",
18
},
19
api: {
20
responseLimit: false,
21
externalResolver: true,
22
bodyParser: false,
23
},
24
trailingSlash: true,
25
async headers() {
26
return [
27
{
28
source: '/:path*',
29
headers: [
30
{
31
key: 'Access-Control-Allow-Origin',
32
value: '*',
33
},
34
],
35
}
36
]
37
},
38
async rewrites() {
39
return [
40
41
]
42
},
43
});
44
45
module.exports = nextConfig;
46
47