-
-
Notifications
You must be signed in to change notification settings - Fork 4
(SP: 1) [FIX] Add netlify-plugin-bundle-env for Netlify SSR env var delivery #426
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
Changes from all commits
9545943
6a76a87
6b4dfec
35a423e
8aef55f
03dee65
10dbd14
12d4439
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -26,7 +26,7 @@ if (process.env.NODE_ENV !== 'test') { | |||||
|
|
||||||
| const IS_LOCAL_ENV = APP_ENV === 'local'; | ||||||
|
|
||||||
| const STRICT_LOCAL_DB_GUARD = process.env.SHOP_STRICT_LOCAL_DB === '1'; | ||||||
| 0const STRICT_LOCAL_DB_GUARD = process.env.SHOP_STRICT_LOCAL_DB === '1'; | ||||||
|
Contributor
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. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Show the malformed declaration in context and scan for similar accidental prefixes.
sed -n '24,32p' frontend/db/index.ts
rg -nP '^\s*\d+const\b' --type tsRepository: DevLoversTeam/devlovers.net Length of output: 398 Remove the stray Line 29 is a hard syntax error ( Suggested fix-0const STRICT_LOCAL_DB_GUARD = process.env.SHOP_STRICT_LOCAL_DB === '1';
+const STRICT_LOCAL_DB_GUARD = process.env.SHOP_STRICT_LOCAL_DB === '1';📝 Committable suggestion
Suggested change
🧰 Tools🪛 Biome (2.4.9)[error] 29-29: Expected a statement but instead found '0const STRICT_LOCAL_DB_GUARD = process.env.SHOP_STRICT_LOCAL_DB === '1''. (parse) [error] 29-29: numbers cannot be followed by identifiers directly after (parse) 🤖 Prompt for AI Agents |
||||||
| const REQUIRED_LOCAL_DB_URL = process.env.SHOP_REQUIRED_DATABASE_URL_LOCAL; | ||||||
|
|
||||||
| if (STRICT_LOCAL_DB_GUARD) { | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,3 +8,6 @@ | |
|
|
||
| [[plugins]] | ||
| package = "@netlify/plugin-nextjs" | ||
|
|
||
| [[plugins]] | ||
| package = "netlify-plugin-bundle-env" | ||
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.
Don't let blog-category lookup reintroduce global 500s.
getCachedBlogCategories()is just a cached DB wrapper with no fallback, so one rejection here aborts the entire locale layout again. SinceblogCategoriesis optional inAppChrome, this should degrade to[]instead of taking down dashboard/auth/leaderboard pages that don't need blog nav data to render.💡 Suggested fix
🤖 Prompt for AI Agents