Skip to content

Commit 72b037f

Browse files
authored
fix(vercel): add preview command (#3921)
1 parent df7fd85 commit 72b037f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/presets/vercel/preset.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ const vercel = defineNitroPreset(
2626
publicDir: "{{ output.dir }}/static/{{ baseURL }}",
2727
},
2828
commands: {
29-
preview: "",
29+
preview:
30+
"npx srvx --static ../../static ./functions/__server.func/index.mjs",
3031
deploy: "npx vercel deploy --prebuilt",
3132
},
3233
hooks: {

0 commit comments

Comments
 (0)