forked from mirrors/pronouns.cc
24 lines
532 B
JavaScript
Executable file
24 lines
532 B
JavaScript
Executable file
const { withSentryConfig } = require("@sentry/nextjs");
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
swcMinify: true,
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: "/api/:path*",
|
|
destination: "http://localhost:8080/:path*", // Proxy to Backend
|
|
},
|
|
];
|
|
},
|
|
sentry: {
|
|
hideSourceMaps: true,
|
|
},
|
|
};
|
|
|
|
const sentryWebpackPluginOptions = {
|
|
silent: true, // Suppresses all logs
|
|
};
|
|
|
|
module.exports = withSentryConfig(nextConfig, sentryWebpackPluginOptions);
|