-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
40 lines (37 loc) · 1017 Bytes
/
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
// 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/
const runtimeCaching = require('next-pwa/cache');
const withPWA = require('next-pwa')({
dest: 'public',
runtimeCaching,
});
const moduleExports = {
reactStrictMode: true,
pageExtensions: ['page.tsx', 'page.ts', 'page.jsx', 'page.js'],
async redirects() {
return [{ source: '/', destination: '/gallery', permanent: true }];
},
images: {
domains: [
'*.nf.domains',
'images.nf.domains',
'cf-ipfs.com',
'dweb.link',
'cloudflare-ipfs.com',
'ipfs-gateway.cloud',
'images.unsplash.com',
'vitals.vercel-insights.com',
'google-analytics.com',
'algoworld-nft.com',
'glitchtip.com',
'ipfs.io',
'ipfs.algonode.xyz',
'jsonkeeper.com',
],
},
};
module.exports = withPWA({
...moduleExports,
});