Frontend/next.config.mjs

50 lines
1.2 KiB
JavaScript
Raw Normal View History

import { withSentryConfig } from "@sentry/nextjs";
2024-04-21 17:23:29 +00:00
2024-04-14 16:45:04 +00:00
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "standalone",
2024-04-14 17:46:37 +00:00
images: {
remotePatterns: [
{
protocol: "https",
hostname: "git.fascinated.cc",
pathname: "/**",
},
2024-04-14 18:55:07 +00:00
{
protocol: "https",
hostname: "api.mcutils.xyz",
pathname: "/**",
},
2024-04-14 17:46:37 +00:00
],
},
2024-04-21 04:47:52 +00:00
experimental: {
mdxRs: true,
},
2024-04-14 16:45:04 +00:00
};
export default withSentryConfig(
nextConfig,
{
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options
silent: true,
org: "minecraft-utilities",
project: "frontend",
url: "https://glitchtip.fascinated.cc/",
authToken: process.env.SENTRY_AUTH_TOKEN || "",
},
{
// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
2024-04-21 17:23:29 +00:00
// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,
2024-04-21 17:23:29 +00:00
// Hides source maps from generated client bundles
hideSourceMaps: true,
2024-04-21 17:23:29 +00:00
// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,
},
);