chore: fix vercel serve static

This commit is contained in:
Stephen Zhou
2025-12-06 23:50:22 +08:00
parent 2e9976b24e
commit add80cdb57
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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({
+1 -1
View File
@@ -8,5 +8,5 @@ export default defineConfig({
shims: true,
clean: true,
plugins: [artTemplatesPlugin()],
copy: ['lib/assets'],
copy: [{ from: 'lib/assets', to: 'dist/public' }],
});