0

TLDR: SvelteKit Form works locally (with Netlify Adapter) but when uploaded to Netlify Server it returns 500 error code.

I am building Authentication into my SvelteKit app, and everything works perfectly on DEV and PROD, but when I upload it to Netlify (https://pazaral.netlify.app/) - it returns a POST Error {500} and doesn't do anything.

Same goes for the Register Page.

I'd really appreciate some help regarding this issue.

GITHUB REPO: https://github.com/enesbala5/pazar/tree/synced

LOGIN:

Here is +page.svelte https://github.com/enesbala5/pazar/blob/synced/src/routes/(auth)/login/%2Bpage.svelte

Here is the +page.server.ts: https://github.com/enesbala5/pazar/blob/synced/src/routes/(auth)/login/%2Bpage.server.ts

--

REGISTER:

Here is the +page.svelte https://github.com/enesbala5/pazar/blob/synced/src/routes/(auth)/register/%2Bpage.svelte

--

Here is the +page.server.ts https://github.com/enesbala5/pazar/blob/synced/src/routes/(auth)/register/%2Bpage.server.ts

Thank you in advance for any and all help!

0 Answers0