mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
* deps: add @sentry/cli * deps: remove @sentry/cli * chore: set dry run on ci * chore: remove dryRun
47 lines
1.0 KiB
JavaScript
47 lines
1.0 KiB
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
const { withSentryConfig } = require('@sentry/nextjs')
|
|
const withPWA = require('next-pwa')({
|
|
disable: process.env.NODE_ENV !== 'production',
|
|
register: false
|
|
})
|
|
const VERSION = require('./package.json').version
|
|
|
|
/**
|
|
* @type {import('next').NextConfig}
|
|
*/
|
|
const NextConfig = {
|
|
webpack: (config, { isServer }) => {
|
|
if (!isServer) {
|
|
config.resolve.fallback.fs = false
|
|
}
|
|
return config
|
|
},
|
|
env: {
|
|
NEXT_PUBLIC_RELEASE_VERSION: VERSION,
|
|
SENTRY_SKIP_AUTO_RELEASE: true
|
|
},
|
|
future: {},
|
|
experimental: {
|
|
scrollRestoration: true
|
|
},
|
|
swcMinify: true,
|
|
redirects: async () => {
|
|
return [
|
|
{
|
|
source: '/developers',
|
|
destination: '/developers/applications',
|
|
permanent: true
|
|
},
|
|
{
|
|
source: '/developers/docs',
|
|
destination: '/developers/docs/시작하기',
|
|
permanent: true
|
|
}
|
|
]
|
|
},
|
|
sentry: process.env.CI ? {
|
|
disableServerWebpackPlugin: true,
|
|
disableClientWebpackPlugin: true,
|
|
} : {}
|
|
}
|
|
module.exports = withSentryConfig(withPWA(NextConfig)) |