Build with Bun in start command
This commit is contained in:
1 parent
09157b3ad0
commit
be028d6934
2 files changed
+2
-2
No files matched your search
@@ -4,7 +4,7 @@ A portfolio website that recreates my Arch Linux desktop (Hyprland, Quickshell b
|
|||||||
|
|
||||||
## Running
|
## Running
|
||||||
|
|
||||||
`start` builds the site and serves it with Bun on `PORT` (default 3000), reading `.env` for the Discord variables.
|
`start` builds the site with Bun (so it does not depend on the system Node version) and serves it with Bun on `PORT` (default 3000), reading `.env` for the Discord variables.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bun install
|
bun install
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"start": "vite build && bun ./build/index.js",
|
"start": "bun --bun vite build && bun ./build/index.js",
|
||||||
"prepare": "svelte-kit sync || echo ''",
|
"prepare": "svelte-kit sync || echo ''",
|
||||||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
|
||||||
|
|||||||
Reference in new issue
Block a user