diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-09-25 12:33:00 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-10-24 12:23:48 +0200 |
| commit | 31695306bfed44409f03006ea717fd2cceff8f87 (patch) | |
| tree | 03c1f4dab34d8f4927e1b824ddf0ab8031538221 /next.config.js | |
| parent | a22214f2a2efcdac2666e1aad3332cb49d2f2198 (diff) | |
build(eslint): improve ESlint rules
In my opinion, next/core-web-vitals rules are too loose so I added
a custom config to improve code consistency and to enforce best
practices.
Diffstat (limited to 'next.config.js')
| -rw-r--r-- | next.config.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/next.config.js b/next.config.js index 04802f1..d590934 100644 --- a/next.config.js +++ b/next.config.js @@ -71,9 +71,9 @@ const securityHeaders = [ { key: 'Content-Security-Policy', value: - process.env.NODE_ENV !== 'development' - ? contentSecurityPolicy.replace(/\s{2,}/g, ' ').trim() - : contentSecurityPolicyDev.replace(/\s{2,}/g, ' ').trim(), + process.env.NODE_ENV === 'development' + ? contentSecurityPolicyDev.replace(/\s{2,}/g, ' ').trim() + : contentSecurityPolicy.replace(/\s{2,}/g, ' ').trim(), }, ]; @@ -82,7 +82,7 @@ const nextConfig = { experimental: { scrollRestoration: true, }, - async headers() { + headers() { return [ { // Apply these headers to all routes in your application. @@ -101,7 +101,7 @@ const nextConfig = { output: 'standalone', poweredByHeader: false, reactStrictMode: true, - async rewrites() { + rewrites() { return [ { source: '/feed', |
