mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
chore: fix vercel serve static
This commit is contained in:
+1
-1
@@ -258,7 +258,7 @@ if (config.debugInfo) {
|
||||
// Only enable tracing in debug mode
|
||||
app.get('/metrics', metrics);
|
||||
}
|
||||
if (!config.isPackage) {
|
||||
if (!config.isPackage && !process.env.VERCEL_ENV) {
|
||||
app.use(
|
||||
'/*',
|
||||
serveStatic({
|
||||
|
||||
@@ -8,5 +8,5 @@ export default defineConfig({
|
||||
shims: true,
|
||||
clean: true,
|
||||
plugins: [artTemplatesPlugin()],
|
||||
copy: ['lib/assets'],
|
||||
copy: [{ from: 'lib/assets', to: 'dist/public' }],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user