Skip to content

Commit

Permalink
[#3842] Fix webpack dev server Invalid Host Header error.
Browse files Browse the repository at this point in the history
And support custom domain in development.
  • Loading branch information
zuhdil authored and punchagan committed Oct 23, 2019
1 parent 3ebe33c commit 818a658
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion akvo/rsr/spa/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const config = env => ({

entry: [
'react-hot-loader/patch',
'webpack-dev-server/client?http://localhost:8080',
'webpack-dev-server/client?http://0.0.0.0:8080',
'webpack/hot/only-dev-server',
'./main.js',
'./styles/main.scss',
Expand All @@ -29,6 +29,7 @@ const config = env => ({

devServer: {
host: '0.0.0.0',
disableHostCheck: true,
hot: true,
contentBase: resolve(__dirname, 'build'),
historyApiFallback: true,
Expand Down
4 changes: 3 additions & 1 deletion scripts/docker/dev/50-docker-local-dev.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os

DEBUG = True
DONATION_TEST = True
DONATION_NOTIFICATION_EMAILS = True
Expand Down Expand Up @@ -44,7 +46,7 @@ PARTNER_SITE_REGEXPS = [
'^.*\.localakvoapp\.org$',
]

RSR_DOMAIN = 'localhost'
RSR_DOMAIN = os.getenv('RSR_DOMAIN', 'localhost')
AKVOAPP_DOMAIN = 'localakvoapp.org'


Expand Down

0 comments on commit 818a658

Please # to comment.