Skip to content

Commit

Permalink
WIP - setting vercel dev
Browse files Browse the repository at this point in the history
  • Loading branch information
sghuang19 committed Feb 16, 2025
1 parent b994412 commit 3b45904
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"scripts": {
"build": "slidev build",
"dev": "slidev",
"dev:vercel": "vercel dev",
"dev:vercel": "./scripts/vercel-dev.sh",
"format": "prettier -c .",
"format:write": "prettier -w .",
"lint": "eslint .",
Expand Down
9 changes: 9 additions & 0 deletions scripts/vercel-dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
set -m
(
bun run dev &
pid1=$!
vercel dev -l 3030 &
pid2=$!
trap "kill 0" INT TERM EXIT
wait
)
2 changes: 1 addition & 1 deletion vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 2,
"framework": "vite",
"devCommand": "echo 'running Slidev in another process'",
"installCommand": "bun install",
"devCommand": "bun run dev",
"buildCommand": "bun run build"
}

0 comments on commit 3b45904

Please sign in to comment.