This project was forked from a tutorial which can be found on Hunterbyte's YouTube channel.
Install dependencies
npm install
Start the development server
npm run dev
Create .env and load in Supabase creds
PUBLIC_SUPABASE_URL=<your url>
PUBLIC_SUPABASE_ANON_KEY=<your key>
- Create an API route, in this example, I created
/routes/api/products/+server.ts
- Fetch from this new API route from a page (Doesn't matter if it's client side OR server side, I've tested and issue exists for both), in this example I did server side fetch from
/routes/products/+page.server.ts
- Load the
/products
page and check logs in server console, you will see this error from Supabase auth helpers:Error: The "host" request header is not available at isSecureEnvironment