-
Notifications
You must be signed in to change notification settings - Fork 5
Remove default env variables #1511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Double-check env precedence in your pipelines before merging
Depending on how Vite/dotenv are invoked in your build, a blank value in .env can still take precedence over system envs or vice versa. Verify what your CI/CD actually injects and whether there are any .env.[mode]* files that should win.
Run this repo-safe script to audit usages and potential fallbacks:
If this shows no fallbacks and no CI provisioning, consider adding a small runtime/build-time env schema check to fail fast.
🏁 Script executed:
Length of output: 12621
Ensure CI injects all VITE_ variables and add fallbacks or schema checks
.env
atapps/cyberstorm-remix/.env
—no.env.local
or mode-specific files are present. Blank entries there will be applied by Vite and could override any system-level variables in your build environment.import.meta.env.VITE_API_URL
,VITE_AUTH_BASE_URL
, andVITE_AUTH_RETURN_URL
lacks a fallback; onlyVITE_SITE_URL
is guarded via?? "https://thunderstore.io"
inapp/root.tsx
(lines 111 & 200)..github/workflows
files—confirm your CI/CD pipelines actually supplyVITE_API_URL
,VITE_AUTH_BASE_URL
, andVITE_AUTH_RETURN_URL
..env
so pipeline-provided values take effect, or introduce a dedicated env schema validation (e.g. with Zod or a custom check) that errors out at build or startup when anyVITE_*
var is missing or empty.🧰 Tools
🪛 dotenv-linter (3.3.0)
[warning] 8-8: [UnorderedKey] The VITE_API_URL key should go before the VITE_SITE_URL key
(UnorderedKey)
[warning] 9-9: [UnorderedKey] The VITE_AUTH_BASE_URL key should go before the VITE_SITE_URL key
(UnorderedKey)
[warning] 10-10: [UnorderedKey] The VITE_AUTH_RETURN_URL key should go before the VITE_SITE_URL key
(UnorderedKey)
🤖 Prompt for AI Agents