-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(frontend): migrate from Create React App to Vite
- add Vite packages and config. - update build scripts. - update ESLint config. - update SVG shape imports. - remove the old Express middleware proxy. - clean up unused dependencies.
- Loading branch information
1 parent
0f0e031
commit b00ad3a
Showing
15 changed files
with
2,686 additions
and
10,131 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,3 +44,6 @@ terracotta.sqlite | |
__pycache__ | ||
*.egg-info | ||
*.pyc | ||
|
||
# frontend config | ||
proxy-table.json |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"/raster": { | ||
"target": "https://jamaica.infrastructureresilience.org", | ||
"changeOrigin": true | ||
}, | ||
"/vector": { | ||
"target": "https://jamaica.infrastructureresilience.org", | ||
"changeOrigin": true | ||
}, | ||
"/api": { | ||
"target": "https://jamaica.infrastructureresilience.org", | ||
"changeOrigin": true | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"/raster": { | ||
"target": "http://localhost:5000", | ||
"changeOrigin": true, | ||
"pathRewrite": { | ||
"^/raster": "/" | ||
} | ||
}, | ||
"/vector": { | ||
"target": "http://localhost:8080", | ||
"changeOrigin": true, | ||
"pathRewrite": { | ||
"^/vector": "/" | ||
} | ||
}, | ||
"/api": { | ||
"target": "http://localhost:8888", | ||
"changeOrigin": true, | ||
"pathRewrite": { | ||
"^/api": "/" | ||
} | ||
} | ||
} |
This file contains 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.