okupter / kitforstartups

The Open Source SvelteKit SaaS boilerplate.
https://kitforstartups.com
MIT License
705 stars 32 forks source link

Use $lib/server instead of $lib for db and auth #12

Open galaczi opened 10 months ago

galaczi commented 10 months ago

I am new to SvelteKit so I am not entirely familiar with the consequences, but shouldn't the db and auth modules be in $lib/server instead of just $lib?

https://kit.svelte.dev/docs/modules#$lib-$lib-server

The Lucia docs do it that way too:

https://lucia-auth.com/getting-started/sveltekit/

Bloeckchengrafik commented 10 months ago

Seems like a good idea to move them!

JustinyAhin commented 10 months ago

@galaczi @Bloeckchengrafik do you want to open a PR with that change?