# Blog: Few things to know before launching a SvelteKit app in prod

**URL:** <https://forum.dfinity.org/t/blog-few-things-to-know-before-launching-a-sveltekit-app-in-prod/15981>\
**Category:** Developers\
**Created:** [October 19, 2022, 11:51am UTC](https://forum.dfinity.org/t/blog-few-things-to-know-before-launching-a-sveltekit-app-in-prod/15981 "2022-10-19T11:51:50Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [November 14, 2022, 6:59pm UTC](https://forum.dfinity.org/t/blog-few-things-to-know-before-launching-a-sveltekit-app-in-prod/15981/22 "2022-11-14T18:59:41Z")

</div>

> [@lukevoz](#):
>
> Oh yeah, now it works. 🙂 Thanks a lot for for your time spending on figuring out my errors here 🙂

Thank you for the help and feedbacks! Glad we figured out a solution that works for any NodeJS version 👍

> [@lukevoz](#):
>
> How about the II is it complicated to add? I was looking at the [Connect2IC toolkit](https://github.com/Connect2IC/connect2ic) that Ive been with svelte before and it seems like it would need some rearrangement to work with svelte kit as well.

Adding II to SvelteKit is absolutely no issue and straight forward. Basically just a store, a svelte `#if`, a sign-in and sign-out function and ready to roll.

As we discussed II was not needed, I did not added it in the template but can do if you think that’s useful? We can also have another template later if you think it’s better narrowed? Your call.

---

<div class="post-metadata">

**Author:** ![lukevoz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/lukevoz/32/5150_2.png) [@lukevoz](https://forum.dfinity.org/u/lukevoz)\
**Post date:** [November 15, 2022, 8:09am UTC](https://forum.dfinity.org/t/blog-few-things-to-know-before-launching-a-sveltekit-app-in-prod/15981/23 "2022-11-15T08:09:02Z")

</div>

I have successfully added II in my local environment and it’s working. I thought that you mentioned that there are some [caveats when running on the IC network](https://forum.dfinity.org/t/blog-few-things-to-know-before-launching-a-sveltekit-app-in-prod/15981/13). If not then all is fine, thanks a lot 🙂

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [November 15, 2022, 8:14am UTC](https://forum.dfinity.org/t/blog-few-things-to-know-before-launching-a-sveltekit-app-in-prod/15981/24 "2022-11-15T08:14:55Z")

</div>

Oh yes right, in the dapps I use II I have various polyfill in place. Glad to hear it worked out for you too. Ping me if you notice any issues please. I would be happy to improve the template.

---

<div class="post-metadata">

**Author:** ![lukevoz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/lukevoz/32/5150_2.png) [@lukevoz](https://forum.dfinity.org/u/lukevoz)\
**Post date:** [October 15, 2023, 5:05pm UTC](https://forum.dfinity.org/t/blog-few-things-to-know-before-launching-a-sveltekit-app-in-prod/15981/25 "2023-10-15T17:05:36Z")

</div>

Hi @peterparker David,

I am still fighting with the sveltekit template with 14+ DFX versions ☹

Before I was able to deploy it at least locally and now not even that as I am getting plenty of JS errors like this one.

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/2X/f/fe32e5fbae36c0a21047d0be8e9485168249fb76.png)

Could you or anyone at Dfinity please try to update this template?

Thanks a lot, it would be very helpful.

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [October 15, 2023, 5:36pm UTC](https://forum.dfinity.org/t/blog-few-things-to-know-before-launching-a-sveltekit-app-in-prod/15981/26 "2023-10-15T17:36:24Z")

</div>

Hi Lukas,

I don’t know what are the plan of the SDK team for these repo. Given the fact that they plan to introduce some templates for dfx, I am guessing that the existing template you mention will be deprecated but, no idea.

Instead, I can suggest you to have a look to Oisy Wallet ([https://github.com/dfinity/oisy-wallet](https://github.com/dfinity/oisy-wallet)) or Juno ([https://github.com/junobuild/juno](https://github.com/junobuild/juno)). Both uses SvelteKit with the adapter-static. Oisy Wallet is on Svelte v3 and Juno on Svelte v4.

If you compara package.json, vite and svelte config plus copy the scripts, that should do.

Alternatively, I can have a quick look on my spare time and send you a PR. What’s your repo?

---

<div class="post-metadata">

**Author:** ![lukevoz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/lukevoz/32/5150_2.png) [@lukevoz](https://forum.dfinity.org/u/lukevoz)\
**Post date:** [October 16, 2023, 5:27pm UTC](https://forum.dfinity.org/t/blog-few-things-to-know-before-launching-a-sveltekit-app-in-prod/15981/27 "2023-10-16T17:27:38Z")

</div>

Thanks David, I managed to deploy a plain sveltekit project with the configuration from Juno. This really helped me. 🙏

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [October 16, 2023, 6:03pm UTC](https://forum.dfinity.org/t/blog-few-things-to-know-before-launching-a-sveltekit-app-in-prod/15981/28 "2023-10-16T18:03:29Z")

</div>

Awesome!!! Let me know if you have any questions regarding the configuration.

[Previous page](https://forum.dfinity.org/t/blog-few-things-to-know-before-launching-a-sveltekit-app-in-prod/15981.md?page=1)
