# How to create a Svelte app with serverless

**URL:** <https://discourse.sst.dev/t/how-to-create-a-svelte-app-with-serverless/2522>\
**Category:** Chapter Comments\
**Created:** [November 18, 2021, 10:32pm UTC](https://discourse.sst.dev/t/how-to-create-a-svelte-app-with-serverless/2522 "2021-11-18T22:32:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [November 18, 2021, 10:32pm UTC](https://discourse.sst.dev/t/how-to-create-a-svelte-app-with-serverless/2522/1 "2021-11-18T22:32:58Z")

</div>

Link to chapter — [https://serverless-stack.com/examples/how-to-create-a-svelte-app-with-serverless.html](https://serverless-stack.com/examples/how-to-create-a-svelte-app-with-serverless.html)

---

<div class="post-metadata">

**Author:** ![noberino](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/noberino/32/1426_2.png) [@noberino](https://discourse.sst.dev/u/noberino)\
**Post date:** [March 10, 2023, 12:19pm UTC](https://discourse.sst.dev/t/how-to-create-a-svelte-app-with-serverless/2522/2 "2023-03-10T12:19:39Z")

</div>

Great tutorial - very exciting,  
a couple things I noticed…

1. `ViteStaticSite` has been replaced with `StaticSite`, I had to go find the  
upgrade-guide#upgrade-to-v118 for an explanation

2. the stack output thorows an error unless you pass in a string like this, it wasn’t obvious right away to me at least so might be work mentioning.  
`site: site.url || 'http://localhost:5173'`

3. `npm start` doesn’t exist anymore, should use `npm run dev`

Also might just be me but the sst console just didn’t work, I tried firefox, brave and chrome (all running reasonable new versions) .

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [March 10, 2023, 10:28pm UTC](https://discourse.sst.dev/t/how-to-create-a-svelte-app-with-serverless/2522/3 "2023-03-10T22:28:30Z")

</div>

We’ll have those changes fixed.

For the console, there are some additional steps for some browsers. But it should work in Chrome. [SST Console | SST](https://docs.sst.dev/console#support)

---

<div class="post-metadata">

**Author:** ![noberino](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/noberino/32/1426_2.png) [@noberino](https://discourse.sst.dev/u/noberino)\
**Post date:** [March 11, 2023, 5:35am UTC](https://discourse.sst.dev/t/how-to-create-a-svelte-app-with-serverless/2522/4 "2023-03-11T05:35:58Z")

</div>

Awesome - I would have submitted a PR but didn’t see a way, maybe i missed it?  
Are the docs in github?

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [March 13, 2023, 5:18pm UTC](https://discourse.sst.dev/t/how-to-create-a-svelte-app-with-serverless/2522/5 "2023-03-13T17:18:39Z")

</div>

There’s an “Edit this page” link at the top of the doc. That should help you submit a PR.

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [March 14, 2023, 4:40pm UTC](https://discourse.sst.dev/t/how-to-create-a-svelte-app-with-serverless/2522/6 "2023-03-14T16:40:14Z")

</div>

I pushed out some fixes for it: [Fixing Svelte example · AnomalyInnovations/serverless-stack-com@3b9d77e · GitHub](https://github.com/AnomalyInnovations/serverless-stack-com/commit/3b9d77eeae71d4f14b3e9738dacf0c45a032a41c)
