diff --git a/next.config.js b/next.config.js index a8afcc1d..33bd5281 100644 --- a/next.config.js +++ b/next.config.js @@ -3,6 +3,7 @@ const withPWA = require('@ducanh2912/next-pwa').default({ dest: 'public', disable: process.env.NODE_ENV === 'development', cacheStartUrl: true, + dynamicStartUrlRedirect: '/zh/today', }) @@ -10,15 +11,10 @@ const withPWA = require('@ducanh2912/next-pwa').default({ const nextConfig = { } -module.exports = withPWA(nextConfig); - - -// Injected content via Sentry wizard below - const { withSentryConfig } = require("@sentry/nextjs"); module.exports = withSentryConfig( - module.exports, + withPWA(nextConfig), { // For all available options, see: // https://github.com/getsentry/sentry-webpack-plugin#options