Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
bea5fc0b
authored
Sep 29, 2025
by
Finley Ge
Committed by
GitHub
Sep 29, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: static file /deploy/* (#5725)
parent
d6fc27a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
+15
-1
document/middleware.ts
+2
-1
document/next.config.mjs
+13
-0
No files found.
document/middleware.ts
View file @
bea5fc0b
...
...
@@ -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/.*).*)'
]
};
document/next.config.mjs
View file @
bea5fc0b
...
...
@@ -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,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment