mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 04:22:07 +00:00
There were recently a few breaking changes introduced into SvelteKit. This PR clones that latest changes from a demo SvelteKit application, while retaining support for Vercel Analytics. Deployed latest to https://sveltekit-template.vercel.app/ and confirmed analytics are sending.
31 lines
1.0 KiB
Markdown
31 lines
1.0 KiB
Markdown
# SvelteKit
|
|
|
|
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte), deployed to [Vercel](https://vercel.com).
|
|
|
|
## Deploy Your Own
|
|
|
|
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fvercel%2Ftree%2Fmain%2Fexamples%2Fsveltekit&project-name=sveltekit-vercel&repository-name=sveltekit-vercel&demo-title=SvelteKit%20%2B%20Vercel&demo-description=A%20SvelteKit%20app%20optimized%20Edge-first.&demo-url=https%3A%2F%2Fsveltekit-template.vercel.app%2F)
|
|
|
|
_Live Example: https://sveltekit-template.vercel.app_
|
|
|
|
## Developing
|
|
|
|
Once you've installed dependencies with `pnpm install`, start a development server:
|
|
|
|
```bash
|
|
pnpm run dev
|
|
|
|
# or start the server and open the app in a new browser tab
|
|
pnpm run dev -- --open
|
|
```
|
|
|
|
## Building
|
|
|
|
To create a production version of your app:
|
|
|
|
```bash
|
|
pnpm run build
|
|
```
|
|
|
|
You can preview the production build with `npm run preview`.
|