# \#svelte

**URL:** https://answers.netlify.com/tag/svelte/205.md

[Latest](https://answers.netlify.com/latest.md) · [Categories](https://answers.netlify.com/categories.md) · [Tags](https://answers.netlify.com/tags.md)

---

## [Form is Successful on My Staging Site but Fails in Production](https://answers.netlify.com/t/form-is-successful-on-my-staging-site-but-fails-in-production/156378)

<div class="topic-metadata">

**Author:** [@tucksravin](https://answers.netlify.com/u/tucksravin)\
**Replies:** 2\
**Last updated:** [September 24, 2025, 4:54pm UTC](https://answers.netlify.com/t/form-is-successful-on-my-staging-site-but-fails-in-production/156378 "2025-09-24T16:54:37Z")

</div>

Hi Netlify Support, I have a critical issue where Netlify forms work perfectly on my staging Netlify subdomain but return 405 errors on my production site. Working URL: https://gallery-sonder-staging.netlify.app/ (200 …

---

## [\_redirects not working in SvelteKit Edge Function deployment](https://answers.netlify.com/t/redirects-not-working-in-sveltekit-edge-function-deployment/139249)

<div class="topic-metadata">

**Author:** [@shubhamandoda](https://answers.netlify.com/u/shubhamandoda)\
**Replies:** 7\
**Last updated:** [February 10, 2025, 10:27am UTC](https://answers.netlify.com/t/redirects-not-working-in-sveltekit-edge-function-deployment/139249 "2025-02-10T10:27:45Z")

</div>

I am building my app in sveltekit and using posthog for analytics. For proxying requests for posthog. I stored the file \_redirects in the static folder. /ingest/static/\* https://us-assets.i.posthog.com/static/:splat 2…

---

## [Netlify deployment with SvelteKit in a GitHub action apparently uses wrong Node.js version](https://answers.netlify.com/t/netlify-deployment-with-sveltekit-in-a-github-action-apparently-uses-wrong-node-js-version/138695)

<div class="topic-metadata">

**Author:** [@ScriptRaccoon](https://answers.netlify.com/u/ScriptRaccoon)\
**Replies:** 5\
**Last updated:** [February 2, 2025, 3:00pm UTC](https://answers.netlify.com/t/netlify-deployment-with-sveltekit-in-a-github-action-apparently-uses-wrong-node-js-version/138695 "2025-02-02T15:00:36Z")

</div>

Hi there :wave: , I am building a project with SvelteKit, deployed to Netlify. It is hosted on GitHub. The continuous deployment worked fine when I linked the Netlify site to the GitHub repository, as usual. I have just…

---

## [Netlify Vite Not found; exit code 127](https://answers.netlify.com/t/netlify-vite-not-found-exit-code-127/137747)

<div class="topic-metadata">

**Author:** [@Mjishu](https://answers.netlify.com/u/Mjishu)\
**Replies:** 3\
**Last updated:** [January 21, 2025, 10:13pm UTC](https://answers.netlify.com/t/netlify-vite-not-found-exit-code-127/137747 "2025-01-21T22:13:23Z")

</div>

Does not give me app url/name Build Logs 11:28:07 PM: Netlify Build 11:28:07 PM: ──────────────────────────────────────────────────────────────── 11:28:07 PM: ​ 11:28:07 PM: ❯ Version 11:28:07 PM: @netlify/build …

---

## [SvelteKit - Data loading timeout issue](https://answers.netlify.com/t/sveltekit-data-loading-timeout-issue/128302)

<div class="topic-metadata">

**Author:** [@zooloo303](https://answers.netlify.com/u/zooloo303)\
**Replies:** 5\
**Last updated:** [October 27, 2024, 5:13pm UTC](https://answers.netlify.com/t/sveltekit-data-loading-timeout-issue/128302 "2024-10-27T17:13:09Z")

</div>

hi my app https://myguardians.netlify.app (https://my-guardians.com/) is built with SvelteKit. It loads some data from an api when the app starts up, a series of json tables, it loads them into indexedDB locally. some o…

---

## [Getting assets in sveltekit -- should I use the new read tool from $app/server?](https://answers.netlify.com/t/getting-assets-in-sveltekit-should-i-use-the-new-read-tool-from-app-server/124556)

<div class="topic-metadata">

**Author:** [@seanluse41](https://answers.netlify.com/u/seanluse41)\
**Replies:** 4\
**Last updated:** [October 19, 2024, 3:00pm UTC](https://answers.netlify.com/t/getting-assets-in-sveltekit-should-i-use-the-new-read-tool-from-app-server/124556 "2024-10-19T15:00:27Z")

</div>

Site: https://master--seanbase.netlify.app/ Hello Netlify team. I am testing out netlify services by building a small site. Things are going smoothly, however I have a problem with importing and using assets in a svelt…

---

## [Unusual high amount of bandwidth on static site](https://answers.netlify.com/t/unusual-high-amount-of-bandwidth-on-static-site/126749)

<div class="topic-metadata">

**Author:** [@ionianreserve](https://answers.netlify.com/u/ionianreserve)\
**Replies:** 1\
**Last updated:** [October 4, 2024, 4:51pm UTC](https://answers.netlify.com/t/unusual-high-amount-of-bandwidth-on-static-site/126749 "2024-10-04T16:51:59Z")

</div>

Hello, we’re having an unusal high amount of bandwidth usage on our static SvelteKit site. The site is fully prerendered and images are served by the Sanity CDN. Our Domain is connected to the Netlify App using A-Reco…

---

## [Forms refuse to work with Svelte](https://answers.netlify.com/t/forms-refuse-to-work-with-svelte/124830)

<div class="topic-metadata">

**Author:** [@asertym](https://answers.netlify.com/u/asertym)\
**Replies:** 3\
**Last updated:** [August 28, 2024, 9:46pm UTC](https://answers.netlify.com/t/forms-refuse-to-work-with-svelte/124830 "2024-08-28T21:46:52Z")

</div>

I recently moved my website to a svelte build and are struggling to get forms to work. I used the same logic as I has previously: AJAX request on submit. Here’s the submit function: function submitForm() { if (validate…

---

## [Netlify forms with an Astro site that is using Svelte, and SSR ... is it really this complicated?](https://answers.netlify.com/t/netlify-forms-with-an-astro-site-that-is-using-svelte-and-ssr-is-it-really-this-complicated/122253)

<div class="topic-metadata">

**Author:** [@hitchless](https://answers.netlify.com/u/hitchless)\
**Replies:** 14\
**Last updated:** [July 31, 2024, 10:37pm UTC](https://answers.netlify.com/t/netlify-forms-with-an-astro-site-that-is-using-svelte-and-ssr-is-it-really-this-complicated/122253 "2024-07-31T22:37:32Z")

</div>

the netlify site name: kenna-barradell.netlify.app with a custom primary domain of kennaleearts.com Hello helpful people! As the title says, I’m building a pretty simple site using Astro and Svelte, that is in SSR mod…

---

## [Netlify Blobs: accessing from function (inside SvelteKit app) requiring explicit token, siteId, deployId](https://answers.netlify.com/t/netlify-blobs-accessing-from-function-inside-sveltekit-app-requiring-explicit-token-siteid-deployid/107200)

<div class="topic-metadata">

**Author:** [@infovore](https://answers.netlify.com/u/infovore)\
**Replies:** 18\
**Last updated:** [July 15, 2024, 5:24pm UTC](https://answers.netlify.com/t/netlify-blobs-accessing-from-function-inside-sveltekit-app-requiring-explicit-token-siteid-deployid/107200 "2024-07-15T17:24:13Z")

</div>

I’m exploring using Netlify Blobs (which I’m aware is in Beta) within my site. In a local build plugin, I generate a pile of JSON, and set it to a deploy-specific store (using getDeployStore. In this plugin, I have to p…

---

## [Got 502 from function using SvelteKit form action](https://answers.netlify.com/t/got-502-from-function-using-sveltekit-form-action/122260)

<div class="topic-metadata">

**Author:** [@JeremyD](https://answers.netlify.com/u/JeremyD)\
**Replies:** 1\
**Last updated:** [July 19, 2024, 6:28pm UTC](https://answers.netlify.com/t/got-502-from-function-using-sveltekit-form-action/122260 "2024-07-19T18:28:02Z")

</div>

Thanks in advance for your help. My site is: dewdrops.netlify.app, no custom domain yet. I’m running Svelte 4.2. I couldn’t find any answers using the AI I’m using SvelteKit Form Actions, which are run as Netlify fun…

---

## [I can't open my post pages created with .md files from external links](https://answers.netlify.com/t/i-cant-open-my-post-pages-created-with-md-files-from-external-links/121449)

<div class="topic-metadata">

**Author:** [@mirquezdrm](https://answers.netlify.com/u/mirquezdrm)\
**Replies:** 1\
**Last updated:** [July 2, 2024, 11:23pm UTC](https://answers.netlify.com/t/i-cant-open-my-post-pages-created-with-md-files-from-external-links/121449 "2024-07-02T23:23:44Z")

</div>

I am deploying a project (sveltekit) with netlify but when I try to access a url directly from the navigation bar I get a 500 error. I clarify, this only happens to me with the news that I have uploaded from the CMS. An…

---

## [Error Page after Deploying Sveltekit through Netlify CLI](https://answers.netlify.com/t/error-page-after-deploying-sveltekit-through-netlify-cli/119576)

<div class="topic-metadata">

**Author:** [@sauld](https://answers.netlify.com/u/sauld)\
**Replies:** 4\
**Last updated:** [June 8, 2024, 1:15pm UTC](https://answers.netlify.com/t/error-page-after-deploying-sveltekit-through-netlify-cli/119576 "2024-06-08T13:15:05Z")

</div>

Netlify Site: cute-smakager-b5551a.netlify.app Folder Structure app/ build/ \_redirects netlify.toml studio/ package.json pnpm-workspace.yaml I’ve referenced multiple forums on Netlify and Sveltekit Forums …

---

## [Slow loading speed SvelteKit + Netlify](https://answers.netlify.com/t/slow-loading-speed-sveltekit-netlify/116285)

<div class="topic-metadata">

**Author:** [@sameer8saini](https://answers.netlify.com/u/sameer8saini)\
**Replies:** 3\
**Last updated:** [April 14, 2024, 6:17pm UTC](https://answers.netlify.com/t/slow-loading-speed-sveltekit-netlify/116285 "2024-04-14T18:17:00Z")

</div>

Hi Team, I have a website that I have re-skinned and it’s now running on SvelteKit and hosted on Netlify. It’s like a landing page fr my portfolio. I am seeing that page speed insights has a big number for first conte…

---

## [Function not found error when using netlify dev with sveltekit](https://answers.netlify.com/t/function-not-found-error-when-using-netlify-dev-with-sveltekit/114913)

<div class="topic-metadata">

**Author:** [@andrewwildgoose](https://answers.netlify.com/u/andrewwildgoose)\
**Replies:** 3\
**Last updated:** [April 4, 2024, 7:05am UTC](https://answers.netlify.com/t/function-not-found-error-when-using-netlify-dev-with-sveltekit/114913 "2024-04-04T07:05:09Z")

</div>

Hi, I’m trying to use the Netlify image CDN to deliver images to my sveltekit site. I’m trying to test it using the netlify dev command to test it locally. When I run netlify dev i get the following console output: ◈ …

---

## [Netlify broke my fetch calls](https://answers.netlify.com/t/netlify-broke-my-fetch-calls/115248)

<div class="topic-metadata">

**Author:** [@doncezart](https://answers.netlify.com/u/doncezart)\
**Replies:** 1\
**Last updated:** [March 31, 2024, 1:08pm UTC](https://answers.netlify.com/t/netlify-broke-my-fetch-calls/115248 "2024-03-31T13:08:17Z")

</div>

Hello. I run a SvelteKit website using Netlify, live on www.doncez.art. On doncez.art/contact, there’s a contact form with 3 fields. When an user fills the form, it gets sent via fetch post calls to a Discord Webhook as …

---

## [SvelteKit Form Action plus Netlify Form Submission](https://answers.netlify.com/t/sveltekit-form-action-plus-netlify-form-submission/88515)

<div class="topic-metadata">

**Author:** [@refchef](https://answers.netlify.com/u/refchef)\
**Replies:** 4\
**Last updated:** [March 31, 2024, 2:21am UTC](https://answers.netlify.com/t/sveltekit-form-action-plus-netlify-form-submission/88515 "2024-03-31T02:21:27Z")

</div>

Hello I was able to successfully setup my form to receive and see the submissions in the Netlify Form Dashboard. After that, I have implemented a custom SvelteKit Form Action to POST the form data to a database. But now…

---

## [Turborepo + SvelteKit deployment build directory not found error](https://answers.netlify.com/t/turborepo-sveltekit-deployment-build-directory-not-found-error/101907)

<div class="topic-metadata">

**Author:** [@bmcilw1](https://answers.netlify.com/u/bmcilw1)\
**Replies:** 11\
**Last updated:** [March 2, 2024, 5:15pm UTC](https://answers.netlify.com/t/turborepo-sveltekit-deployment-build-directory-not-found-error/101907 "2024-03-02T17:15:20Z")

</div>

I’m trying to deploy the official Turborepo + SvelteKit boilerplate from Vercel, found here, their repo here Error Excerpt 3:35:37 PM: Build failed due to a user error: Build script returned non-zero exit code: 2 3:35:…

---

## [Site renders differently on Netlify vs Local](https://answers.netlify.com/t/site-renders-differently-on-netlify-vs-local/113374)

<div class="topic-metadata">

**Author:** [@j-e](https://answers.netlify.com/u/j-e)\
**Replies:** 9\
**Last updated:** [February 27, 2024, 11:20am UTC](https://answers.netlify.com/t/site-renders-differently-on-netlify-vs-local/113374 "2024-02-27T11:20:34Z")

</div>

As per title, I have a feature on my website that renders perfectly fine in my local development environment, but the same repo that is deployed to my Netlify site doesn’t render correctly at all. In this case, I’m usin…

---

## [Web App build failed due to: Failed to install Node.js version "20"](https://answers.netlify.com/t/web-app-build-failed-due-to-failed-to-install-node-js-version-20/112809)

<div class="topic-metadata">

**Author:** [@Muntasir2001](https://answers.netlify.com/u/Muntasir2001)\
**Replies:** 1\
**Last updated:** [February 19, 2024, 2:11pm UTC](https://answers.netlify.com/t/web-app-build-failed-due-to-failed-to-install-node-js-version-20/112809 "2024-02-19T14:11:13Z")

</div>

Hi, My build/deployment has been failing and here is the log: 12:49:56 PM: build-image version: fcb0c1b3ada6d25c1cb58e8bc514f5f23cc14f15 (focal) 12:49:56 PM: buildbot version: f395ea5f6f06715665ef60980f5ca024c32ca3b9 …

---

## [SvelteKit page returns 405 on page, when other pages load fine](https://answers.netlify.com/t/sveltekit-page-returns-405-on-page-when-other-pages-load-fine/111595)

<div class="topic-metadata">

**Author:** [@msavin](https://answers.netlify.com/u/msavin)\
**Replies:** 2\
**Last updated:** [February 12, 2024, 9:50pm UTC](https://answers.netlify.com/t/sveltekit-page-returns-405-on-page-when-other-pages-load-fine/111595 "2024-02-12T21:50:50Z")

</div>

Hey folks - I’m checking how Google and Facebook are parsing metatags, but surprisingly, just one of my pages returns: \<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose…

---

## [Cookies not setting on custom domain](https://answers.netlify.com/t/cookies-not-setting-on-custom-domain/110119)

<div class="topic-metadata">

**Author:** [@j-e](https://answers.netlify.com/u/j-e)\
**Replies:** 1\
**Last updated:** [January 13, 2024, 4:52pm UTC](https://answers.netlify.com/t/cookies-not-setting-on-custom-domain/110119 "2024-01-13T16:52:46Z")

</div>

I’ve deployed an app on Netlify with a custom domain, meaning I can access it via both the netlify.app domain along with my custom one. The issue I’m having is that cookies do not seem to be setting when going via my cu…

---

## [Unresponsive Netlify Function (never executed, connection timeouts)](https://answers.netlify.com/t/unresponsive-netlify-function-never-executed-connection-timeouts/105690)

<div class="topic-metadata">

**Author:** [@james-camilleri](https://answers.netlify.com/u/james-camilleri)\
**Replies:** 17\
**Last updated:** [January 12, 2024, 8:38pm UTC](https://answers.netlify.com/t/unresponsive-netlify-function-never-executed-connection-timeouts/105690 "2024-01-12T20:38:05Z")

</div>

I am facing an untraceable issue with Netlify function timeouts. The function is called as a webhook from Sanity.io, and is frequently timing out - not in the expected 10s time limit way, but being completely unresponsiv…

---

## ['Headers is not defined' error in Sveltekit deployed app](https://answers.netlify.com/t/headers-is-not-defined-error-in-sveltekit-deployed-app/108868)

<div class="topic-metadata">

**Author:** [@miklereverie](https://answers.netlify.com/u/miklereverie)\
**Replies:** 0\
**Last updated:** [December 18, 2023, 1:32pm UTC](https://answers.netlify.com/t/headers-is-not-defined-error-in-sveltekit-deployed-app/108868 "2023-12-18T13:32:04Z")

</div>

EDIT: FIXED – The solution was to switch the application’s node version to 20.x PLEASE help us help you by writing a good post! We need to know your netlify site name. Example: gifted-antelope-58b104.netlify.app DNS …

---

## [Local server won't work using netlify CLI](https://answers.netlify.com/t/local-server-wont-work-using-netlify-cli/108452)

<div class="topic-metadata">

**Author:** [@\_Devr](https://answers.netlify.com/u/_Devr)\
**Replies:** 1\
**Last updated:** [December 14, 2023, 5:57pm UTC](https://answers.netlify.com/t/local-server-wont-work-using-netlify-cli/108452 "2023-12-14T17:57:16Z")

</div>

Hey there!, Am using sveltekit framework for my app, trying to integrate the netlify functions into it, so when I try to test and develop it using netlify CLI my initial app or landing page shows function not found on my…

---

## [Netlify Forms Are failing on first post only](https://answers.netlify.com/t/netlify-forms-are-failing-on-first-post-only/107051)

<div class="topic-metadata">

**Author:** [@ryanboddy](https://answers.netlify.com/u/ryanboddy)\
**Replies:** 2\
**Last updated:** [November 21, 2023, 3:38pm UTC](https://answers.netlify.com/t/netlify-forms-are-failing-on-first-post-only/107051 "2023-11-21T15:38:10Z")

</div>

Alright, I really want Netlify forms to work. The simplicity is awesome. However, I’m running into a very odd bug. I have two forms, on completely different pages, on a Sveltekit site. One form is here: https://ericabra…

---

## [Svelte kit app wont run due to ENOENT: no such file or directory](https://answers.netlify.com/t/svelte-kit-app-wont-run-due-to-enoent-no-such-file-or-directory/106802)

<div class="topic-metadata">

**Author:** [@jayesegun03](https://answers.netlify.com/u/jayesegun03)\
**Replies:** 1\
**Last updated:** [November 19, 2023, 11:30am UTC](https://answers.netlify.com/t/svelte-kit-app-wont-run-due-to-enoent-no-such-file-or-directory/106802 "2023-11-19T11:30:16Z")

</div>

Hi, Please need help with deploying my sveltekit app. It works well on development but throws this error if I try to deploy 7:11:09 AM: \[vite:load-fallback\] Could not load /opt/build/repo/src/lib/MultipleBarChart/data.j…

---

## [SvelteKit generated js and css files are not found](https://answers.netlify.com/t/sveltekit-generated-js-and-css-files-are-not-found/106560)

<div class="topic-metadata">

**Author:** [@zhamdi](https://answers.netlify.com/u/zhamdi)\
**Replies:** 1\
**Last updated:** [November 16, 2023, 2:20pm UTC](https://answers.netlify.com/t/sveltekit-generated-js-and-css-files-are-not-found/106560 "2023-11-16T14:20:53Z")

</div>

PLEASE help us help you by writing a good post! we need to know your netlify site name. user-credits.netlify.app DNS issues? Tell us the custom domain, tell us the error message! We can’t help if we don’t know your d…

---

## [Sveltekit 413 (payload too large)](https://answers.netlify.com/t/sveltekit-413-payload-too-large/106121)

<div class="topic-metadata">

**Author:** [@KevDev99](https://answers.netlify.com/u/KevDev99)\
**Replies:** 1\
**Last updated:** [November 7, 2023, 1:02pm UTC](https://answers.netlify.com/t/sveltekit-413-payload-too-large/106121 "2023-11-07T13:02:22Z")

</div>

it looks like there is a file size limit for uploading files on my deployed sveltekit app. if the the payload gets \> 6mb i get automatically an error of 413 when submitting the data - is there really any limit set ? the…

---

## [Trying to execute a child process in a serverless function. Is it possible? ( Error: Command failed: ... No such file or directory.)](https://answers.netlify.com/t/trying-to-execute-a-child-process-in-a-serverless-function-is-it-possible-error-command-failed-no-such-file-or-directory/105941)

<div class="topic-metadata">

**Author:** [@Metaphysics0](https://answers.netlify.com/u/Metaphysics0)\
**Replies:** 1\
**Last updated:** [November 6, 2023, 6:19pm UTC](https://answers.netlify.com/t/trying-to-execute-a-child-process-in-a-serverless-function-is-it-possible-error-command-failed-no-such-file-or-directory/105941 "2023-11-06T18:19:59Z")

</div>

I’ve been trying to get this working for the whole day, since I was told Netlify supports SvelteKit server functions from accessing static files (while vercel does not) For context, I have a serverless function that tak…

[Next page](https://answers.netlify.com/tag/svelte/205.md?match_all_tags=true&page=1&tags%5B%5D=svelte)
