forked from neeia/ak-roster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
42 lines (38 loc) · 1.04 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
// This file sets a custom webpack configuration to use your Next.js app
// with Sentry.
// https://nextjs.org/docs/api-reference/next.config.js/introduction
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
const { withSentryConfig } = require('@sentry/nextjs');
/* Modified as per https://melvingeorge.me/blog/nextjs-pwa */
const withOffline = require("next-offline");
/** @type {import('next').NextConfig} */
const nextConfig = {
//reactStrictMode: true,
webpack: (config) => {
config.resolve.fallback = { fs: false };
return config;
},
productionBrowserSourceMaps: true,
async redirects() {
return [
{
source: '/u/:user*',
destination: '/network/lookup/:user*',
permanent: false,
},
]
},
images: {
formats: ['image/avif', 'image/webp'],
minimumCacheTTL: 604800,
}
}
module.exports = nextConfig;
module.exports = withSentryConfig(
module.exports,
{
dryRun: process.env.VERCEL_ENV !== "production"
},
{ silent: true },
{ hideSourcemaps: true },
);