This directory is a brief example of a Svelte site that can be deployed to Vercel with zero-configuration. If you need to use API Routes, we recommend using our SvelteKit example.
Live Example: https://svelte.vercel.app
npx degit sveltejs/template my-svelte-project
cd my-svelte-project
npm install
npm run dev
All in one command for git and Vercel:
git add . && git commit -m "C" && git push origin main
Navigate to localhost:8080. You should see your app running. Edit a component file in src
, save it, and reload the page to see your changes.