2022-09-16 01:20:09 -07:00
|
|
|
const { withSentryConfig } = require("@sentry/nextjs");
|
|
|
|
|
2022-08-15 15:01:54 -07:00
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
const nextConfig = {
|
|
|
|
reactStrictMode: true,
|
|
|
|
swcMinify: true,
|
2022-08-16 18:04:06 -07:00
|
|
|
async rewrites() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: "/api/:path*",
|
|
|
|
destination: "http://localhost:8080/:path*", // Proxy to Backend
|
|
|
|
},
|
|
|
|
];
|
|
|
|
},
|
2022-09-16 01:20:09 -07:00
|
|
|
sentry: {
|
|
|
|
hideSourceMaps: true,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
const sentryWebpackPluginOptions = {
|
|
|
|
silent: true, // Suppresses all logs
|
2022-08-16 18:04:06 -07:00
|
|
|
};
|
2022-08-15 15:01:54 -07:00
|
|
|
|
2022-09-16 01:20:09 -07:00
|
|
|
module.exports = withSentryConfig(nextConfig, sentryWebpackPluginOptions);
|