-
Notifications
You must be signed in to change notification settings - Fork 22
/
next.config.js
48 lines (45 loc) · 1.45 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
const { withSentryConfig } = require('@sentry/nextjs')
const nextConfig = {
reactStrictMode: false,
env: {
MAINNET_PRIMARY: process.env.MAINNET_PRIMARY,
MAINNET_PRIMARY_BETA: process.env.MAINNET_PRIMARY_BETA,
MAINNET_SECONDARY: process.env.MAINNET_SECONDARY,
BASE_CLUSTER: process.env.BASE_CLUSTER || 'devnet',
NEXT_PUBLIC_BASE_URL:
process.env.NEXT_PUBLIC_BASE_URL || 'https://rent.host.so',
},
async rewrites() {
return [
{
source: '/:path*{/}?',
has: [
{
type: 'host',
value: '(?<hostName>.*)',
},
],
destination: '/:hostName/:path*',
},
{
source: '/:hostName/:collection/claim/:tokenManagerString*',
destination: '/:hostName/:collection/:tokenManagerString*',
},
{
source: '/:hostName/claim/:tokenManagerString*',
destination: '/:hostName/default/:tokenManagerString*',
},
]
},
}
/** @type {import('next').NextConfig} */
module.exports = withSentryConfig(nextConfig, {
// Additional config options for the Sentry Webpack plugin. Keep in mind that
// the following options are set automatically, and overriding them is not
// recommended:
// release, url, org, project, authToken, configFile, stripPrefix,
// urlPrefix, include, ignore
silent: true, // Suppresses all logs
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options.
})