2022-02-14 10:57:57 +01:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
|
|
const { withSentryConfig } = require('@sentry/nextjs')
|
|
|
|
|
|
|
|
const moduleExports = {
|
2022-03-12 07:53:37 +01:00
|
|
|
experimental: {
|
|
|
|
outputStandalone: true,
|
|
|
|
},
|
2022-05-14 08:11:26 -07:00
|
|
|
optimizeFonts: false,
|
2022-06-22 07:21:02 +02:00
|
|
|
publicRuntimeConfig: {
|
|
|
|
NEXT_PUBLIC_GOOGLE_API_KEY: process.env.NEXT_PUBLIC_GOOGLE_API_KEY,
|
|
|
|
NEXT_PUBLIC_GIPHY_API_KEY: process.env.NEXT_PUBLIC_GIPHY_API_KEY,
|
|
|
|
NEXT_PUBLIC_STRIPE_PUBLIC_KEY: process.env.NEXT_PUBLIC_STRIPE_PUBLIC_KEY,
|
|
|
|
},
|
2022-02-14 10:57:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
const sentryWebpackPluginOptions = {
|
|
|
|
silent: true,
|
|
|
|
// For all available options, see:
|
|
|
|
// https://github.com/getsentry/sentry-webpack-plugin#options.
|
|
|
|
}
|
|
|
|
|
2022-03-12 07:53:37 +01:00
|
|
|
module.exports = process.env.SENTRY_AUTH_TOKEN
|
|
|
|
? withSentryConfig(moduleExports, sentryWebpackPluginOptions)
|
|
|
|
: moduleExports
|