# Netlify adapter in Sveltekit

**URL:** <https://answers.netlify.com/t/netlify-adapter-in-sveltekit/40012>\
**Category:** Support\
**Tags:** deployment, lambda-functions\
**Created:** [June 28, 2021, 12:15pm UTC](https://answers.netlify.com/t/netlify-adapter-in-sveltekit/40012 "2021-06-28T12:15:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ClaudiaGiv](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/claudiagiv/32/26929_2.png) [@ClaudiaGiv](https://answers.netlify.com/u/ClaudiaGiv)\
**Post date:** [June 28, 2021, 12:15pm UTC](https://answers.netlify.com/t/netlify-adapter-in-sveltekit/40012/1 "2021-06-28T12:15:20Z")

</div>

Hi,

I recently started working with **Svelte** and created a small app with **SvelteKit** where I added the **netlify adapter** for **netlify functions.** I also added the netlify.toml file with the specified configuration.

I noticed that the **functions** created in the **functions directory** are not deployed instead the **render function** is created and deployed, that contains all the logic from the endpoints.

1. Why **netlify** doesn’t recognize/deploy the **custom netlify functions** I created in the functions directory?
2. If I don’t use the **netlify adapter** where/how **the endpoints** run on the prod env?

Thank you!

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [June 28, 2021, 12:59pm UTC](https://answers.netlify.com/t/netlify-adapter-in-sveltekit/40012/2 "2021-06-28T12:59:07Z")

</div>

> [@ClaudiaGiv](#):
>
> Why **netlify** doesn’t recognize/deploy the **custom netlify functions** I created in the functions directory?

It’s the adapter causing problems, not Netlify. Check this out: [https://github.com/sveltejs/kit/blob/master/packages/adapter-netlify/index.js#L16](https://github.com/sveltejs/kit/blob/master/packages/adapter-netlify/index.js#L16). That line is deleting everything from the functions folder, so your functions are getting deleted too.

> [@ClaudiaGiv](#):
>
> If I don’t use the **netlify adapter** where/how **the endpoints** run on the prod env?

I’m not sure what you mean by this, possible because I’m not familiar with Svelte myself. But, I would suggest to open an issue on the package so they can help you out.
