Files
myeasycms-v2/apps/web/README.md
giancarlo 2b0fbc445b Refactor authentication method to requireUser
Replaced the requireAuth method with requireUser to improve clarity and modified all instances where it was used. Renamed the import throughout multiple files and services and made changes accordingly, thus making it more specific and understandable that a logged-in user is needed. The return type of the method was also updated from Session to User to more accurately reflect the information it provides.
2024-03-29 15:52:32 +08:00

34 lines
846 B
Markdown

# Your Application
Write here everything about your application.
## Setup
For working locally, please add a file named `.env.local` where we can place our environment variables. This file is not committed to Git, therefore it is safe to store sensitive information in it.
After starting Supabase, copy the service role key from the Supabase project settings and add it to the `.env.local` file.
```
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
```
## Stripe
For the Stripe integration, first we need to start the Stripe CLI:
```
pnpm run stripe:listen
```
Then, update the `.env.local` file with the following variables:
```
STRIPE_WEBHOOK_SECRET=
STRIPE_SECRET_KEY=
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
```
### Supabase
Please follow the instructions in the [Supabase README](../supabase/README.md) to setup your Supabase project.