Fix site crash by restoring next-intl plugin and lost next.config.ts options
Recent optimization commits accidentally gutted next.config.ts, removing the createNextIntlPlugin wrapper. This caused every page to crash at runtime with 'Couldn't find next-intl config file', showing the error page after a successful build. Restores: - next-intl plugin (./src/i18n/request.ts) - Security headers (HSTS, X-Frame-Options, nosniff, etc.) - Redirects from /admin/import/* to /admin/studio/* - Cache headers for /assets and /images, AVIF/WebP image formats - compress and productionBrowserSourceMaps Keeps recent improvements: reactStrictMode and optimizePackageImports.
This commit is contained in:
1 parent
3070d85423
commit
0201d21c38
1 file changed
+119
-2