pronounss/frontend/next.config.js

25 lines
532 B
JavaScript
Raw Normal View History

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