Skip to content
Snippets Groups Projects
Commit ba8982e8 authored by esikkala's avatar esikkala
Browse files

Restore apiUrl and react-simple-lightbox

parent 6f7faf22
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -71,6 +71,7 @@
"reselect": "^4.0.0",
"rxjs": "^6.3.3",
"rxjs-compat": "^6.3.3",
"simple-react-lightbox": "^3.3.4-2",
"sitemap": "^6.1.5",
"swagger-ui-express": "^4.1.4",
"victory": "^0.26.1"
......
......@@ -4,6 +4,7 @@ const { CleanWebpackPlugin } = require('clean-webpack-plugin')
const webpack = require('webpack')
const outputDirectory = 'dist/public'
const apiUrl = typeof process.env.API_URL !== 'undefined' ? process.env.API_URL : 'http://localhost:3001/api/v1'
module.exports = {
entry: {
......@@ -25,7 +26,10 @@ module.exports = {
template: 'src/client/index.html',
favicon: 'src/client/favicon.ico'
}),
new webpack.HotModuleReplacementPlugin()
new webpack.HotModuleReplacementPlugin(),
new webpack.DefinePlugin({
'process.env.API_URL': JSON.stringify(apiUrl)
})
],
output: {
filename: '[name].[fullhash].js',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment