diff --git a/document/middleware.ts b/document/middleware.ts index 7084d0d8b..2cc8cfbfb 100644 --- a/document/middleware.ts +++ b/document/middleware.ts @@ -4,5 +4,6 @@ import { i18n } from '@/lib/i18n'; export default createI18nMiddleware(i18n); export const config = { - matcher: ['/((?!api|_next/static|_next/image|favicon.ico|.*\\.svg|.*\\.png).*)'] + // matcher: ['/((?!api|_next/static|_next/image|favicon.ico|.*\\.svg|.*\\.png).*)'] + matcher: ['/((?!api|_next/static|_next/image|favicon.ico|.*\\.svg|.*\\.png|deploy/.*).*)'] }; diff --git a/document/next.config.mjs b/document/next.config.mjs index ba1c8440c..737cd3f1e 100644 --- a/document/next.config.mjs +++ b/document/next.config.mjs @@ -15,6 +15,19 @@ const config = { output: 'standalone', reactStrictMode: true, compress: true, + async headers() { + return [ + { + source: '/deploy/:path*', + headers: [ + { + key: 'Content-Type', + value: 'text/plain; charset=utf-8', + }, + ], + }, + ]; + }, images: { unoptimized: true, dangerouslyAllowSVG: true,