Creating a Svelte Flask app on vercel

Hi, @austeane!

Thanks for taking the time to share details of your project. I’d need a bit more time to look through this, but wanted to share some resources in case they’re helpful:

I’m also curious your choice of Svelte and Flask? I wonder if you could simplify this even more. :thinking: Maybe something like:

You could transition from a separate Flask backend and Svelte frontend to an integrated SvelteKit app. Instead of using Flask for the backend, you’ll leverage SvelteKit’s built-in API routes to handle server-side logic. This eliminates the need for a separate Flask server.

You’ll also need to switch from SQLite to a serverless-compatible database solution, such as Vercel Postgres or Vercel KV, as SQLite requires a persistent filesystem that isn’t available in serverless environments.

Let me know what you think!