mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-06 04:22:01 +00:00
Currently, [the SvelteKit (v1)](https://vercel.com/new/clone?b=main&s=https%3A%2F%2Fgithub.com%2Fvercel%2Fvercel%2Ftree%2Fmain%2Fexamples%2Fsveltekit-1&showOptionalTeamCreation=false&template=sveltekit-1&teamCreateStatus=hidden) example fails with: ``` ERR_PNPM_OUTDATED_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with package.json ``` This fixes the lockfile, and therefore fixes the example. --- As a side-quest, I also fixed the "unmet peer" warnings: ``` └─┬ @vercel/style-guide 4.0.2 ├── ✕ unmet peer eslint@^8.24.0: found 8.14.0 ├── ✕ unmet peer prettier@^2.7.0: found 2.6.2 └─┬ eslint-plugin-unicorn 43.0.2 └── ✕ unmet peer eslint@>=8.18.0: found 8.14.0 ```
SvelteKit Demo app
The official demo app for SvelteKit, hosted on Vercel.
Deploy Your Own
Live Example: https://sveltekit-template.vercel.app
Developing
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 and open the app in a new browser tab
npm run dev -- --open
Building
To create a production version of your app:
npm run build
You can preview the production build with npm run preview.
Speed Insights
Once deployed on Vercel, you can benefit from Speed Insights simply by navigating to Vercel's dashboard, clicking on the 'Speed Insights' tab, and enabling the product.
You will get data once your application will be re-deployed and will receive visitors.