Boilerplate for SvelteKit projects in TypeScript, optimized for Cloudflare Pages
⚠️ When deploying, use SvelteKit preset and set
NODE_VERSION
env to20.15
for compatibility
Clone repo:
git clone https://github.com/equilpres/sveltekit-cloudflare-typescript-boilerplate.git
Go to project dir:
cd sveltekit-cloudflare-typescript-boilerplate
Install deps:
pnpm install
dev
: Start dev server.
pnpm dev
build
: Build project.
pnpm build
preview
: Preview prod build.
pnpm preview
sync
: Sync files with SvelteKit.
pnpm sync
svelte-check
: Check Svelte files.
pnpm svelte-check
lint
: Lint code.
pnpm lint
fmt
: Format code.
pnpm fmt
bump
: Update deps.
pnpm bump