Experiments >

Svelte-kit supabase preset: environment vars

Experiment #1149th April, 2021by Joshua Nussbaum

I updated the svelte-kit/supabase preset to run yarn/npm/pnpm. It also now has a --local option, which allows the .env file to be filled in automatically, since the local creds are all hardcoded.

I wasn’t able to run npx supabase init from within the preset, because the supabase cli is interactive and asks some questions, so it needs stdin. Will have to look into doing it another way or just leaving it up to the userto run supabase init, it’s optional anyways.

Code

joshnuss/svelte-supabase@6fd73fc

Demo

view all experiments

Stay tuned in

Learn how to add more experimentation to your workflow