mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
* deps: update next.js to 13 * chore: migrate to new Link component * chore: remove future option from next.config * chore: update react-select * chore: enable hideSourceMaps on sentry * chore: assert type as string * chore: make placeholder and value absolute * feat: set timeout for redirect * chore: ignore ts error * chore: add generics * chore: * chore: add ts comment * feat: use dnd-kit instead of react-sortable-hoc * fix: give absolute position to placeholder
49 lines
1.1 KiB
JavaScript
49 lines
1.1 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
|
|
},
|
|
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,
|
|
hideSourceMaps: true,
|
|
} : {
|
|
hideSourceMaps: true,
|
|
},
|
|
}
|
|
module.exports = withSentryConfig(withPWA(NextConfig)) |