Skip to content

Commit

Permalink
refactor: renamed subscription free version limit env var
Browse files Browse the repository at this point in the history
  • Loading branch information
philprime committed Sep 29, 2023
1 parent fd9739c commit 7cf2d7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ STRIPE_WEBHOOK_SECRET=
STRIPE_SECRET_KEY=

# limit for requests of the free subscription version
NEXT_PUBLIC_FREE_VERSION_LIMIT=42
SUBSCRIPTION_FREE_VERSION_LIMIT=42

# redis data
REDIS_ENABLED=true
Expand Down
2 changes: 1 addition & 1 deletion config/loadConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export function loadConfig(): Config {
},
freeSub: {
requestLimit:
parseNumberEnvValue(process.env.NEXT_PUBLIC_FREE_VERSION_LIMIT) ?? 42,
parseNumberEnvValue(process.env.SUBSCRIPTION_FREE_VERSION_LIMIT) ?? 42,
},
database: {
url:
Expand Down

0 comments on commit 7cf2d7a

Please sign in to comment.