Openstatus
www.openstatus.dev
1import { withSentryConfig } from "@sentry/nextjs";
2import type { NextConfig } from "next";
3
4const nextConfig: NextConfig = {
5 output: process.env.SELF_HOST === "true" ? "standalone" : undefined,
6 images: {
7 remotePatterns: [
8 new URL("https://openstatus.dev/**"),
9 new URL("https://**.public.blob.vercel-storage.com/**"),
10 ],
11 },
12 logging: {
13 fetches: {
14 fullUrl: true,
15 },
16 },
17};
18
19// For detailed options, refer to the official documentation:
20// - Webpack plugin options: https://github.com/getsentry/sentry-webpack-plugin#options
21// - Next.js Sentry setup guide: https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
22const sentryConfig = {
23 // Prevent log output unless running in a CI environment (helps reduce noise in logs)
24 silent: !process.env.CI,
25 org: "openstatus",
26 project: "openstatus",
27 authToken: process.env.SENTRY_AUTH_TOKEN,
28
29 // Upload a larger set of source maps for improved stack trace accuracy (increases build time)
30 widenClientFileUpload: true,
31
32 // If set to true, transpiles Sentry SDK to be compatible with IE11 (increases bundle size)
33 transpileClientSDK: false,
34
35 // Tree-shake Sentry logger statements to reduce bundle size
36 disableLogger: true,
37};
38
39export default withSentryConfig(nextConfig, sentryConfig);