Skip to content

Commit

Permalink
feat(webpack-dev-server): 🎸 history fallback rewrites and caritas.loc…
Browse files Browse the repository at this point in the history
…al host
  • Loading branch information
Johannes Becker committed Nov 16, 2020
1 parent 0e632eb commit 20359ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions config/webpackDevServer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ module.exports = function (proxy, allowedHost) {
// See https://github.com/facebook/create-react-app/issues/387.
disableDotRule: true,
index: paths.publicUrlOrPath,
rewrites: [
{ from: /^\/$/, to: '/login.html' },
{ from: /^\/.+/, to: '/beratung-hilfe.html' },
]
},
public: allowedHost,
// `proxy` is run between `before` and `after` `webpack-dev-server` hooks
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"standard-version": "9.0.0"
},
"scripts": {
"start": "node scripts/start.js",
"start": "HOST=caritas.local node scripts/start.js",
"build": "node scripts/build.js",
"test": "node scripts/test.js"
},
Expand Down

0 comments on commit 20359ab

Please sign in to comment.