forked from tapexyz/tape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
61 lines (57 loc) · 1.55 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/** @type {import('next').NextConfig} */
const { withSentryConfig } = require('@sentry/nextjs')
const { withAxiom } = require('next-axiom')
const sentryWebpackPluginOptions = {
silent: true
}
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true'
})
const moduleExports = withBundleAnalyzer(
withAxiom(
withSentryConfig(
{
sentry: {
hideSourceMaps: true
},
reactStrictMode: process.env.NODE_ENV === 'production',
experimental: {
newNextLinkBehavior: true
},
async rewrites() {
return [
{
source: '/sitemap.xml',
destination: 'https://assets.lenstube.xyz/sitemaps/sitemap.xml'
},
{
source: '/sitemaps/:match*',
destination: 'https://assets.lenstube.xyz/sitemaps/:match*'
},
{
source: '/collect/:match*',
destination: 'https://api.mixpanel.com/:match*'
}
]
},
async redirects() {
return [
{
source: '/discord',
destination:
'https://discord.com/servers/lenstube-980882088783913010',
permanent: true
},
{
source: '/donate',
destination: 'https://gitcoin.co/grants/6972/lenstube',
permanent: true
}
]
}
},
sentryWebpackPluginOptions
)
)
)
module.exports = moduleExports