This project uses pnpm for package management.
To install pnpm:
npm install -g pnpmTo manage the database, you will need the Supabase CLI.
-
Install the Supabase CLI:
Follow the installation guide but only for the installation step from here
-
Login to Supabase:
supabase login
This will open your browser to authenticate.
-
Select your Project: Link your local environment to your remote Supabase project:
supabase link
You can find your project ID in the Supabase dashboard settings.
-
Setup the local environment:
Set your supabase project variables in a
.envfile in thewebsitefolder. You can copy from the.env.examplefile and fill in the values. -
Generate Supabase Types:
To generate the Supabase types, run the following command in the
websitefolder:pnpm supabase-types
To start the local development server, run:
pnpm dev-
Connect to Git Repository:
In your Netlify dashboard, create a new site and connect it to your Git repository.
-
Set the Environment Variables:
In the Netlify site settings, add the same environment variables as in your
.envfile.
To deploy the website to Netlify, push your changes to the main branch. Netlify will automatically build and deploy the site
Whenever you make changes to the database schema, remember to regenerate the Supabase types by running:
pnpm supabase-types