Readyish for prod!
This commit is contained in:
@ -1,12 +1,14 @@
|
|||||||
/**
|
/* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation.
|
||||||
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
|
* This is especially useful for Docker builds.
|
||||||
* for Docker builds.
|
|
||||||
*/
|
*/
|
||||||
import './src/env.js';
|
import './src/env.js';
|
||||||
import { withSentryConfig } from '@sentry/nextjs';
|
import { withSentryConfig } from '@sentry/nextjs';
|
||||||
|
import { withPlausibleProxy } from 'next-plausible';
|
||||||
|
|
||||||
/** @type {import("next").NextConfig} */
|
/** @type {import("next").NextConfig} */
|
||||||
const config = {
|
const config = withPlausibleProxy({
|
||||||
|
customDomain: 'https://plausible.gbrown.org',
|
||||||
|
})({
|
||||||
output: 'standalone',
|
output: 'standalone',
|
||||||
images: {
|
images: {
|
||||||
remotePatterns: [
|
remotePatterns: [
|
||||||
@ -28,22 +30,29 @@ const config = {
|
|||||||
eslint: {
|
eslint: {
|
||||||
ignoreDuringBuilds: true,
|
ignoreDuringBuilds: true,
|
||||||
},
|
},
|
||||||
//turbopack: {
|
turbopack: {
|
||||||
//rules: {
|
rules: {
|
||||||
//'*.svg': {
|
'*.svg': {
|
||||||
//loaders: ['@svgr/webpack'],
|
loaders: [
|
||||||
//as: '*.js',
|
{
|
||||||
//},
|
loader: '@svgr/webpack',
|
||||||
//},
|
options: {
|
||||||
//},
|
icon: true,
|
||||||
};
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
as: '*.js',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
const sentryConfig = {
|
const sentryConfig = {
|
||||||
// For all available options, see:
|
// For all available options, see:
|
||||||
// https://www.npmjs.com/package/@sentry/webpack-plugin#options
|
// https://www.npmjs.com/package/@sentry/webpack-plugin#options
|
||||||
org: 'gib',
|
org: 'gib',
|
||||||
project: 't3-supabase-template',
|
project: 't3-supabase-template',
|
||||||
sentryUrl: process.env.SENTRY_URL,
|
sentryUrl: process.env.NEXT_PUBLIC_SENTRY_URL,
|
||||||
authToken: process.env.SENTRY_AUTH_TOKEN,
|
authToken: process.env.SENTRY_AUTH_TOKEN,
|
||||||
// Only print logs for uploading source maps in CI
|
// Only print logs for uploading source maps in CI
|
||||||
silent: !process.env.CI,
|
silent: !process.env.CI,
|
||||||
|
Reference in New Issue
Block a user