Update dependency from edge-csrf to @edge-csrf/nextjs
The previous edge-csrf library has been replaced by the newer @edge-csrf/nextjs with updated configurations in `pnpm-lock.yaml`. Also, removed some unnecessary dependencies for cleaner and more efficient code deployment.
This commit is contained in:
23
README.md
23
README.md
@@ -410,6 +410,7 @@ NB: to use Captcha protection, you need to set the captcha token in the environm
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
CAPTCHA_SECRET_TOKEN=
|
CAPTCHA_SECRET_TOKEN=
|
||||||
|
NEXT_PUBLIC_CAPTCHA_SITE_KEY=
|
||||||
```
|
```
|
||||||
|
|
||||||
As a secret environment variable, please do not add it to the `.env` file. Instead, add it to the environment variables of your CI/CD system.
|
As a secret environment variable, please do not add it to the `.env` file. Instead, add it to the environment variables of your CI/CD system.
|
||||||
@@ -571,6 +572,7 @@ NB: to use Captcha protection, you need to set the captcha token in the environm
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
CAPTCHA_SECRET_TOKEN=
|
CAPTCHA_SECRET_TOKEN=
|
||||||
|
NEXT_PUBLIC_CAPTCHA_SITE_KEY=
|
||||||
```
|
```
|
||||||
|
|
||||||
As a secret environment variable, please do not add it to the `.env` file. Instead, add it to the environment variables of your CI/CD system.
|
As a secret environment variable, please do not add it to the `.env` file. Instead, add it to the environment variables of your CI/CD system.
|
||||||
@@ -585,8 +587,8 @@ shared between environments (eg. they will be the same for development, staging,
|
|||||||
**NB: You will not add any secret keys or sensitive information here.** Only configuration, paths, feature flags, etc.
|
**NB: You will not add any secret keys or sensitive information here.** Only configuration, paths, feature flags, etc.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# SHARED ENVIROMENT VARIABLES
|
# SHARED ENVIRONMENT VARIABLES
|
||||||
# HERE YOU CAN ADD ALL THE **PUBLIC** ENVIRONMENT VARIABLES THAT ARE SHARED ACROSS ALL THE ENVIROMENTS
|
# HERE YOU CAN ADD ALL THE **PUBLIC** ENVIRONMENT VARIABLES THAT ARE SHARED ACROSS ALL THE ENVIRONMENTS
|
||||||
# PLEASE DO NOT ADD ANY CONFIDENTIAL KEYS OR SENSITIVE INFORMATION HERE
|
# PLEASE DO NOT ADD ANY CONFIDENTIAL KEYS OR SENSITIVE INFORMATION HERE
|
||||||
# ONLY CONFIGURATION, PATH, FEATURE FLAGS, ETC.
|
# ONLY CONFIGURATION, PATH, FEATURE FLAGS, ETC.
|
||||||
# TO OVERRIDE THESE VARIABLES IN A SPECIFIC ENVIRONMENT, PLEASE ADD THEM TO THE SPECIFIC ENVIRONMENT FILE (e.g. .env.development, .env.production)
|
# TO OVERRIDE THESE VARIABLES IN A SPECIFIC ENVIRONMENT, PLEASE ADD THEM TO THE SPECIFIC ENVIRONMENT FILE (e.g. .env.development, .env.production)
|
||||||
@@ -659,6 +661,21 @@ NEXT_PUBLIC_ENABLE_TEAM_ACCOUNTS_CREATION=true
|
|||||||
6. **NEXT_PUBLIC_ENABLE_TEAM_ACCOUNTS** - to disable team accounts
|
6. **NEXT_PUBLIC_ENABLE_TEAM_ACCOUNTS** - to disable team accounts
|
||||||
7. **NEXT_PUBLIC_ENABLE_TEAM_ACCOUNTS_CREATION** - to enable/disable the ability to create a team account
|
7. **NEXT_PUBLIC_ENABLE_TEAM_ACCOUNTS_CREATION** - to enable/disable the ability to create a team account
|
||||||
|
|
||||||
|
### Cloudflare Turnstile protection
|
||||||
|
|
||||||
|
To use Cloudflare's Turnstile Captcha, you need to set the following environment variables:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
CAPTCHA_SECRET_TOKEN=
|
||||||
|
NEXT_PUBLIC_CAPTCHA_SITE_KEY=
|
||||||
|
```
|
||||||
|
|
||||||
|
Of course, please make sure Turnstile it's set up correctly.
|
||||||
|
|
||||||
|
This token will be used to validate:
|
||||||
|
1. Sign ups (automatically) by passing the token to Supabase. **Please set the captcha token in Supabase too**.
|
||||||
|
2. API routes and server actions that are protected by the captcha token.
|
||||||
|
|
||||||
### Production Environment Variables
|
### Production Environment Variables
|
||||||
|
|
||||||
When going to production, you will need to define the environment variables in the `apps/web/.env.production` file.
|
When going to production, you will need to define the environment variables in the `apps/web/.env.production` file.
|
||||||
@@ -675,7 +692,7 @@ If you use Stripe, also add:
|
|||||||
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
|
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
|
||||||
```
|
```
|
||||||
|
|
||||||
From your CI, please add the following environment variables:
|
**Exclusively from your CI or hosting platform**, please add the following environment variables:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# SUPABASE
|
# SUPABASE
|
||||||
|
|||||||
@@ -31,6 +31,7 @@
|
|||||||
"supabase:db:dump:local": "supabase db dump --local --data-only"
|
"supabase:db:dump:local": "supabase db dump --local --data-only"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@edge-csrf/nextjs": "2.0.0",
|
||||||
"@hookform/resolvers": "^3.3.4",
|
"@hookform/resolvers": "^3.3.4",
|
||||||
"@kit/accounts": "workspace:^",
|
"@kit/accounts": "workspace:^",
|
||||||
"@kit/admin": "workspace:^",
|
"@kit/admin": "workspace:^",
|
||||||
@@ -57,7 +58,6 @@
|
|||||||
"@tanstack/react-query-next-experimental": "^5.29.2",
|
"@tanstack/react-query-next-experimental": "^5.29.2",
|
||||||
"@tanstack/react-table": "^8.16.0",
|
"@tanstack/react-table": "^8.16.0",
|
||||||
"date-fns": "^3.6.0",
|
"date-fns": "^3.6.0",
|
||||||
"@edge-csrf/nextjs": "2.0.0",
|
|
||||||
"i18next": "^23.11.2",
|
"i18next": "^23.11.2",
|
||||||
"i18next-resources-to-backend": "^1.2.1",
|
"i18next-resources-to-backend": "^1.2.1",
|
||||||
"lucide-react": "^0.368.0",
|
"lucide-react": "^0.368.0",
|
||||||
|
|||||||
707
pnpm-lock.yaml
generated
707
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user