-
Notifications
You must be signed in to change notification settings - Fork 36
fix: Configure babel-plugin-transform-vite-meta-env to resolve Jest errors #564
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
0417a87
b1a84f4
7a4af03
a85e6f6
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 |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Netlify Configuration for VishwaGuru Frontend | ||
|
|
||
| [build] | ||
| # Execute from frontend dir | ||
| publish = "dist" | ||
| command = "npm install && npm run build" | ||
|
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: Use Prompt for AI agents |
||
|
|
||
| [build.environment] | ||
| NODE_VERSION = "20" | ||
| CI = "false" | ||
|
|
||
| # Environment variables (set these in Netlify dashboard) | ||
| # VITE_API_URL = https://your-backend.onrender.com | ||
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 | ||
|---|---|---|---|---|
|
|
@@ -17,19 +17,19 @@ | |||
| }, | ||||
| "dependencies": { | ||||
| "@supabase/supabase-js": "^2.95.3", | ||||
| "@vitejs/plugin-react": "^5.1.2", | ||||
| "autoprefixer": "^10.4.23", | ||||
| "dexie": "^4.2.1", | ||||
| "framer-motion": "^12.29.2", | ||||
| "i18next": "^25.8.0", | ||||
| "i18next-browser-languagedetector": "^8.2.0", | ||||
| "lucide-react": "^0.562.0", | ||||
| "postcss": "^8.5.6", | ||||
| "react": "^19.2.0", | ||||
| "react-dom": "^19.2.0", | ||||
| "react-i18next": "^16.5.3", | ||||
| "react-router-dom": "^7.12.0", | ||||
| "react-webcam": "^7.2.0", | ||||
| "@vitejs/plugin-react": "^5.1.2", | ||||
| "autoprefixer": "^10.4.23", | ||||
| "postcss": "^8.5.6", | ||||
| "tailwindcss": "^3.4.1", | ||||
| "vite": "^7.3.0", | ||||
| "vite-plugin-pwa": "^1.2.0" | ||||
|
|
@@ -45,6 +45,8 @@ | |||
| "@types/react": "^19.2.5", | ||||
| "@types/react-dom": "^19.2.3", | ||||
| "babel-jest": "^29.7.0", | ||||
| "babel-plugin-transform-import-meta": "^2.3.3", | ||||
|
||||
| "babel-plugin-transform-import-meta": "^2.3.3", |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| /* | ||
| X-Frame-Options: DENY | ||
| X-Content-Type-Options: nosniff | ||
| X-XSS-Protection: 1; mode=block | ||
| Referrer-Policy: strict-origin-when-cross-origin |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /* /index.html 200 |
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.
This endpoint now declares the dependency as
client = backend.dependencies.Depends(get_http_client), which drops thehttpx.AsyncClienttype annotation and couples the router tobackend.dependenciesjust to accessDepends. Consider importingDependsfromfastapiin this module and using a forward-reference/TYPE_CHECKING import for the httpx type so you can keep the annotation without reintroducing runtime import/circular issues.