Default npm run serve to 0.0.0.0

This commit is contained in:
D. Berge
2023-08-23 19:27:57 +02:00
parent fe9d3563a0
commit 1f9c0e56fe
2 changed files with 2 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"scripts": {
"serve": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve",
"serve": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve --host=0.0.0.0",
"build": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build"
},
"dependencies": {

View File

@@ -4,6 +4,7 @@ module.exports = {
"leaflet-arrowheads"
],
devServer: {
host: "0.0.0.0",
proxy: {
"^/api(/|$)": {
target: "http://localhost:3000",