-
Notifications
You must be signed in to change notification settings - Fork 38
Fix Netlify deployment and UI issues #906
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| import '@testing-library/jest-dom'; | ||
|
|
||
| // Mock import.meta globally for Jest | ||
| global.import = global.import || {}; | ||
| global.import.meta = { | ||
| globalThis.import = globalThis.import || {}; | ||
| globalThis.import.meta = { | ||
| env: { | ||
| VITE_API_URL: 'http://localhost:3000' | ||
| } | ||
| }; | ||
| }; | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,6 +2,9 @@ | |||||
| publish = "frontend/dist" | ||||||
| command = "npm install --prefix frontend && npm run build --prefix frontend" | ||||||
|
|
||||||
| [build.environment] | ||||||
| CI = "false" | ||||||
|
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. P2: The Netlify override does not reliably disable CI behavior: Prompt for AI agents
Suggested change
|
||||||
|
|
||||||
| [[redirects]] | ||||||
| from = "/*" | ||||||
| to = "/index.html" | ||||||
|
|
||||||
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.
P3: The test setup still does not mock
import.meta: assigningglobalThis.import.metacreates an unrelated object and cannot change the moduleimport.metavalue. Any test or module that readsimport.metaoutside the existingimport.meta.envtransform will not receive thisenvobject; use the Jest transform/module-mocking mechanism instead, or remove this misleading setup.Prompt for AI agents