Everything you need to build a Svelte project, powered by create-svelte
.
If developing with wrangler, you'll need to install it globally:
npm i -g wrangler
You'll also need to run the local setup for the d1 DB:
npm run dev:build-d1
Once you've created a project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
npm run dev
# or start the server with wrangler/cf bindings
npm run dev:wrangler
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.