[go: nahoru, domu]

Skip to content

Commit

Permalink
Update Next.js configuration and remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
realjoshuau committed Feb 29, 2024
1 parent 1593597 commit 45c461f
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 37 deletions.
79 changes: 43 additions & 36 deletions apps/nextjs/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,37 +1,44 @@
import {withSentryConfig} from '@sentry/nextjs';
/** @type {import('next').NextConfig} */
const nextConfig = {};

export default withSentryConfig(nextConfig, {
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options

// Suppresses source map uploading logs during build
silent: true,
org: "warriorborgs-3256",
project: "javascript-nextjs",
}, {
// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/

// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,

// Transpiles SDK to be compatible with IE11 (increases bundle size)
transpileClientSDK: true,
import { withSentryConfig } from "@sentry/nextjs";

// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)
tunnelRoute: "/monitoring",

// Hides source maps from generated client bundles
hideSourceMaps: true,

// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,

// Enables automatic instrumentation of Vercel Cron Monitors.
// See the following for more information:
// https://docs.sentry.io/product/crons/
// https://vercel.com/docs/cron-jobs
automaticVercelMonitors: true,
});
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: { missingSuspenseWithCSRBailout: false },
};

export default withSentryConfig(
nextConfig,
{
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options

// Suppresses source map uploading logs during build
silent: true,
org: "warriorborgs-3256",
project: "javascript-nextjs",
},
{
// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/

// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,

// Transpiles SDK to be compatible with IE11 (increases bundle size)
transpileClientSDK: true,

// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)
tunnelRoute: "/monitoring",

// Hides source maps from generated client bundles
hideSourceMaps: true,

// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,

// Enables automatic instrumentation of Vercel Cron Monitors.
// See the following for more information:
// https://docs.sentry.io/product/crons/
// https://vercel.com/docs/cron-jobs
automaticVercelMonitors: true,
},
);
1 change: 0 additions & 1 deletion apps/nextjs/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { signup } from "./actions";

export default function AuthenticationPage() {
const searchParams = useSearchParams();
const noredir = searchParams.get("noredir");
const code = searchParams.get("code");
if (code) {
redirect("/signin?signup=true&code=" + code);
Expand Down

0 comments on commit 45c461f

Please sign in to comment.