mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-17 06:23:44 +08:00
fix bug cache
This commit is contained in:
@@ -107,18 +107,18 @@ const ForceCacheHeaders = [
|
||||
]
|
||||
|
||||
if (mode !== "export") {
|
||||
nextConfig.headers = async () => {
|
||||
return [
|
||||
{
|
||||
source: "/:path*\\.(png|ico|txt|css|js|json|webmanifest)",
|
||||
headers: ForceCacheHeaders,
|
||||
},
|
||||
// {
|
||||
// source: "/api/:path*",
|
||||
// headers: CorsHeaders,
|
||||
// },
|
||||
];
|
||||
};
|
||||
// nextConfig.headers = async () => {
|
||||
// return [
|
||||
// {
|
||||
// source: "/:path*\\.(png|ico|txt|css|js|json|webmanifest)",
|
||||
// headers: ForceCacheHeaders,
|
||||
// },
|
||||
// {
|
||||
// source: "/api/:path*",
|
||||
// headers: CorsHeaders,
|
||||
// },
|
||||
// ];
|
||||
// };
|
||||
|
||||
nextConfig.rewrites = async () => {
|
||||
const ret = [
|
||||
|
||||
Reference in New Issue
Block a user