From cbb25cd334b5e4c30ea24a414b430988017c9243 Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Wed, 6 Jul 2022 03:39:27 +0000 Subject: [PATCH] Change Rollup port to 1000 --- .devcontainer/devcontainer.json | 4 ++-- .devcontainer/preconfig/.storage/lovelace_resources | 2 +- .vscode/launch.json | 4 ++-- rollup.config.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 6c467e5b..bc2c1976 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -5,7 +5,7 @@ "workspaceFolder": "${localWorkspaceFolder}", "shutdownAction": "stopCompose", "portsAttributes": { - "41000": { + "1000": { "label": "Rollup", "onAutoForward": "silent" }, @@ -18,7 +18,7 @@ "onAutoForward": "silent" } }, - "forwardPorts": ["hass:8123", "frigate:5000"], + "forwardPorts": [1000, "hass:8123", "frigate:5000"], "initializeCommand": ".devcontainer/initialize.sh", "postCreateCommand": "yarn install", "extensions": [ diff --git a/.devcontainer/preconfig/.storage/lovelace_resources b/.devcontainer/preconfig/.storage/lovelace_resources index f4b6b72e..1bd4c0f8 100644 --- a/.devcontainer/preconfig/.storage/lovelace_resources +++ b/.devcontainer/preconfig/.storage/lovelace_resources @@ -5,7 +5,7 @@ "data": { "items": [ { - "url": "http://localhost:41000/frigate-hass-card.js", + "url": "http://localhost:1000/frigate-hass-card.js", "type": "module", "id": "00c459541bac4290af01c51bf9c06ba1" } diff --git a/.vscode/launch.json b/.vscode/launch.json index 328688a9..0c322e3a 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,10 +5,10 @@ "type": "pwa-chrome", "request": "launch", "name": "Launch Chrome against Home Assistant", - "url": "http://localhost:48123", + "url": "http://localhost:8123", "webRoot": "${workspaceFolder}/dist", "preLaunchTask": "Rollup", - "resolveSourceMapLocations": ["http://localhost:41000/**"] + "resolveSourceMapLocations": ["http://localhost:1000/**"] } ] } diff --git a/rollup.config.js b/rollup.config.js index 1bc213a0..5d8eced0 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -19,7 +19,7 @@ const dev = watch || process.env.DEV === 'true' || process.env.DEV === '1'; const serveopts = { contentBase: ['./dist'], host: '0.0.0.0', - port: 41000, + port: 1000, allowCrossOrigin: true, headers: { 'Access-Control-Allow-Origin': '*',