# Install bun - NOTE: bun is installed globally to the system
curl -fsSL https://bun.sh/install | bash
# Using bun package manager
bun i
#start the dev server
bun run dev
#build your app
bun run build
#preview your app
bun run preview
## With pagefind in package.json
vite build && pagefind
## Without pagefind in package.json
vite build
- Open vercel dashboard of your project
- For project command overrides
- Settings -> General -> Build & Development Settings
- Build command: bun run build
- Output directory: build
- Install command: bun i
- Development command: bun run dev
- For environment variables
- Go to Settings -> Environment Variables
- PUBLIC_URL = https://blog.ilkerflix.com
- For custom Ignored Build Step
- Go to Settings -> Git -> Ignored Build Step -> Project Settings
- Custom -> if [ "$VERCEL_GIT_COMMIT_REF" == "gh-pages" ]; then exit 0; else exit 1; fi
- (Alternative) Run my bash script -> bash scripts/vercel_ignored_build_step.s
- Using official mdsvex package instead of @huntabyte/mdsvex breaks the code highlighting. Need to fix it.