-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.mjs
35 lines (34 loc) · 1.04 KB
/
next.config.mjs
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
import {withSentryConfig} from "@sentry/nextjs";
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
output: "standalone",
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
experimental: {
instrumentationHook: true
},
async rewrites() {
return [
{
source: `${process.env.NEXT_PUBLIC_BASE_PATH}/api/catalog/:path*`,
destination: `${process.env.CATALOGUE_API_PATH}/:path*`,
basePath: false
}
];
}
};
export default withSentryConfig(nextConfig, {
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options
silent: true,
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
url: process.env.SENTRY_URL
}, {
// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
widenClientFileUpload: true,
transpileClientSDK: true,
hideSourceMaps: true,
disableLogger: true
});