-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(examples): Add ARCJET_ENV to Bun and SvelteKit env files (#970)
Closes #969 Localhost IP addresses are only allowed in development mode now. Bun doesn't set `NODE_ENV` for you like Node does, so you need to set `ARCJET_ENV` in your environment file. The reason this checks **explicitly** for development environment is that we don't want to allow non-global IPs if users deploy there service and forget to set an environment.
- Loading branch information
1 parent
f563848
commit 8a20d30
Showing
3 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
ARCJET_KEY= | ||
# Run Arcjet in development mode because Bun.sh doesn't explicitly | ||
# set an environment variable like Node.js does | ||
ARCJET_ENV=development | ||
ARCJET_KEY= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
# Run Arcjet in development mode because Bun.sh doesn't explicitly | ||
# set an environment variable like Node.js does | ||
ARCJET_ENV=development | ||
ARCJET_KEY= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
ARCJET_KEY= | ||
# Run Arcjet in development mode because SvelteKit might not explicitly | ||
# set an environment variable like Node.js does | ||
ARCJET_ENV=development | ||
ARCJET_KEY= |