Adding Sentry is basically done now. We have a nice lil component to help us get started to!

This commit is contained in:
2025-06-07 14:30:25 -05:00
parent eebc022928
commit 23efcdee80
16 changed files with 3538 additions and 1207 deletions

View File

@ -7,14 +7,6 @@ import { withSentryConfig } from '@sentry/nextjs';
/** @type {import("next").NextConfig} */
const config = {
turbopack: {
rules: {
'*.svg': {
loaders: ['@svgr/webpack'],
as: '*.js',
},
},
},
output: 'standalone',
images: {
remotePatterns: [
@ -24,11 +16,20 @@ const config = {
},
],
},
serverExternalPackages: ['require-in-the-middle'],
experimental: {
serverActions: {
bodySizeLimit: '10mb',
},
},
//turbopack: {
//rules: {
//'*.svg': {
//loaders: ['@svgr/webpack'],
//as: '*.js',
//},
//},
//},
};
const sentryConfig = {
@ -36,7 +37,7 @@ const sentryConfig = {
// https://www.npmjs.com/package/@sentry/webpack-plugin#options
org: 'gib',
project: 't3-supabase-template',
sentryUrl: process.env.SENTRY_URL,
sentryUrl: process.env.NEXT_PUBLIC_SENTRY_URL,
authToken: process.env.SENTRY_AUTH_TOKEN,
// Only print logs for uploading source maps in CI
silent: !process.env.CI,