-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configure pathname prefix depending on build env vars (#194)
* update vite base path by env var; fix .env formatting * update links to use relative bath including base * alert content use redux actions * remove uneeded Link wrapper
- Loading branch information
1 parent
8dc26f9
commit 4e22e1c
Showing
24 changed files
with
131 additions
and
108 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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
VITE_ALERT_EDITOR: false | ||
VITE_FORMULA_EDITOR: true | ||
VITE_INSTRUMENT_CHART: true | ||
VITE_CROSS_SECTION: true | ||
VITE_DEVELOPMENT_BANNER: false | ||
VITE_API_URL: https://midas.sec.usace.army.mil/api | ||
VITE_ALERT_EDITOR=false | ||
VITE_FORMULA_EDITOR=true | ||
VITE_INSTRUMENT_CHART=true | ||
VITE_CROSS_SECTION=true | ||
VITE_DEVELOPMENT_BANNER=false | ||
VITE_API_URL=https://midas.sec.usace.army.mil/api | ||
VITE_URL_BASE_PATH=/midas |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
VITE_ALERT_EDITOR: false | ||
VITE_FORMULA_EDITOR: true | ||
VITE_INSTRUMENT_CHART: true | ||
VITE_CROSS_SECTION: true | ||
VITE_DEVELOPMENT_BANNER: false | ||
VITE_API_URL: https://midas-test.cwbi.us/api | ||
VITE_ALERT_EDITOR=false | ||
VITE_FORMULA_EDITOR=true | ||
VITE_INSTRUMENT_CHART=true | ||
VITE_CROSS_SECTION=true | ||
VITE_DEVELOPMENT_BANNER=false | ||
VITE_API_URL=https://midas-test.cwbi.us/api | ||
VITE_URL_BASE_PATH=/midas |
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
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
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,13 @@ | ||
import { createSelector } from "redux-bundler"; | ||
|
||
export default ({ base }) => { | ||
return { | ||
name: 'urlBasePath', | ||
|
||
selectRelativePathname: createSelector('selectPathname', pathname => pathname.replace(base, '')), | ||
|
||
doUpdateRelativeUrl: (url, opts) => ({ store }) => { | ||
store.doUpdateUrl(`${base}${url}`, opts) | ||
}, | ||
} | ||
}; |
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
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
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
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
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
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
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
Oops, something went wrong.