-
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.
Merge pull request #54 from KPMP/develop
Prep for release 1.0
- Loading branch information
Showing
60 changed files
with
17,310 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
REACT_APP_SEARCH_KEY= | ||
REACT_APP_SEARCH_ENDPOINT="/spatial-viewer/search" |
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 |
---|---|---|
@@ -1,2 +1,6 @@ | ||
# hydra-web | ||
This is the front-end code for the KPMP data repository. | ||
|
||
# Notes. | ||
|
||
Currently the app-search is using the spatial-viewers elastic-search index, this requires the src/App.js file has an "endpointBase" variable set to "/spatial-viewer/search" instead of "/repository/search". This is a temporary solution until the repository has its own elastic-search index. |
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,27 @@ | ||
const CracoAlias = require("craco-alias"); | ||
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer") | ||
.BundleAnalyzerPlugin | ||
|
||
const isProductionBuild = process.env.NODE_ENV === "production" | ||
const shouldAnalyze = process.env.REACT_APP_RUN_ANALYZER === "true" | ||
const plugins = [] | ||
if (isProductionBuild && shouldAnalyze ) { | ||
plugins.push(new BundleAnalyzerPlugin({ analyzerMode: 'server' })) | ||
} | ||
module.exports = { | ||
plugins: [ | ||
{ | ||
plugin: CracoAlias, | ||
options: { | ||
source: "options", | ||
baseUrl: "./", | ||
aliases: { | ||
"txml/txml": "./node_modules/txml/dist/txml", | ||
} | ||
} | ||
} | ||
], | ||
webpack: { | ||
plugins, | ||
}, | ||
} |
Oops, something went wrong.