diff --git a/scripts/next.config.build.js b/scripts/next.config.build.js index 86a3086..809ffc0 100644 --- a/scripts/next.config.build.js +++ b/scripts/next.config.build.js @@ -51,7 +51,7 @@ const sentryConfig = { // For all available options, see: // https://www.npmjs.com/package/@sentry/webpack-plugin#options org: 'gib', - project: 't3-supabase-template', + project: 'tech-tracker-next', sentryUrl: process.env.NEXT_PUBLIC_SENTRY_URL, authToken: process.env.SENTRY_AUTH_TOKEN, // Only print logs for uploading source maps in CI diff --git a/scripts/next.config.default.js b/scripts/next.config.default.js index d1cec6a..7b7316d 100644 --- a/scripts/next.config.default.js +++ b/scripts/next.config.default.js @@ -1,12 +1,14 @@ -/** - * Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful - * for Docker builds. +/* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. + * This is especially useful for Docker builds. */ import './src/env.js'; import { withSentryConfig } from '@sentry/nextjs'; +import { withPlausibleProxy } from 'next-plausible'; /** @type {import("next").NextConfig} */ -const config = { +const config = withPlausibleProxy({ + customDomain: 'https://plausible.gbrown.org', +})({ output: 'standalone', images: { remotePatterns: [ @@ -22,22 +24,29 @@ const config = { bodySizeLimit: '10mb', }, }, - //turbopack: { - //rules: { - //'*.svg': { - //loaders: ['@svgr/webpack'], - //as: '*.js', - //}, - //}, - //}, -}; + turbopack: { + rules: { + '*.svg': { + loaders: [ + { + loader: '@svgr/webpack', + options: { + icon: true, + }, + }, + ], + as: '*.js', + }, + }, + }, +}); const sentryConfig = { // For all available options, see: // https://www.npmjs.com/package/@sentry/webpack-plugin#options org: 'gib', - project: 't3-supabase-template', - sentryUrl: process.env.SENTRY_URL, + project: 'tech-tracker-next', + 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,