-
Notifications
You must be signed in to change notification settings - Fork 6
Dot-env showcase #16
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
Dot-env showcase #16
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
PORT=3000 | ||
PORT=8000 | ||
Comment on lines
+1
to
+2
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Resolve the duplicate PORT key conflict. You define PORT twice with different values (3000 and 8000). Most environment parsers handle this by using the last occurrence, making PORT=8000 the effective value. This creates unpredictable behavior and potential debugging challenges. Consider removing one of the duplicate definitions or using descriptive names: -PORT=3000 -PORT=8000 +DEV_PORT=3000 +PROD_PORT=8000 📝 Committable suggestion
Suggested change
PORT=3000
PORT=8000
DEV_PORT=3000
PROD_PORT=8000
🤖 Prompt for AI Agents
|
||
DB_URL postgres://localhost | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix the missing equals sign in environment variable assignment. The DB_URL line lacks an equals sign, making it an invalid environment variable declaration. Most parsers will ignore this line entirely or treat it as malformed. Apply this fix: -DB_URL postgres://localhost +DB_URL=postgres://localhost 📝 Committable suggestion
Suggested change
DB_URL postgres://localhost
-DB_URL postgres://localhost
+DB_URL=postgres://localhost
🤖 Prompt for AI Agents
|
||
SECRET_KEY=12345 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the leading space before the variable name. The SECRET_KEY line starts with a space, which creates an invalid variable name. Environment parsers typically require variable names to start at the beginning of the line without leading whitespace. Apply this fix: - SECRET_KEY=12345 +SECRET_KEY=12345 📝 Committable suggestion
Suggested change
SECRET_KEY=12345
SECRET_KEY=12345
🤖 Prompt for AI Agents
|
||
UNQUOTED VALUE | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Provide a valid key-value pair format. Line 5 contains "UNQUOTED VALUE" without an associated variable name or equals sign. This creates an invalid environment variable entry that parsers cannot process. Specify a proper key-value format: -UNQUOTED VALUE +SOME_KEY=UNQUOTED VALUE Or if this represents a comment, prefix it with a hash: -UNQUOTED VALUE +# UNQUOTED VALUE 📝 Committable suggestion
Suggested change
UNQUOTED VALUE
SOME_KEY=UNQUOTED VALUE
🤖 Prompt for AI Agents
|