Flamenco/web/app/package.json
William Gardner ea68faa577 Web: improve URL handling to allow for TLS/SSL
Explicitly use the `--mode` flag for the webapp development server
(`vite`) to make the web frontend choose the appropriate HTTP and
WebSocket port to communicate with the backend. This also makes sure
that when accessing the frontend via `https://`, the websocket
connection uses `wss://`.

As a side-effect, this also makes port `:8081` usable in production
environments; it would assume it was the development server and try to
access the backend on port `:8080`.

Reviewed-on: https://projects.blender.org/studio/flamenco/pulls/104296
Reviewed-by: Sybren A. Stüvel <sybren@blender.org>
2024-04-11 15:00:48 +02:00

40 lines
970 B
JSON

{
"name": "flamenco-manager",
"version": "0.0.3",
"private": true,
"author": {
"name": "Sybren A. Stüvel"
},
"licenses": [
{
"type": "GPL-3.0",
"url": "https://opensource.org/licenses/GPL-3.0"
}
],
"scripts": {
"dev": "vite --port 8081 --base /app/ --mode development",
"build": "vite build",
"preview": "vite preview --port 5050",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore"
},
"dependencies": {
"luxon": "^2.3.1",
"microtip": "^0.2.2",
"pinia": "^2.0.13",
"socket.io-client": "2",
"superagent": "^7.1.2",
"tabulator-tables": "^5.4.3",
"vue": "^3.2.31",
"vue-router": "^4.0.14"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.1.0",
"@vitejs/plugin-vue": "^2.3.1",
"@vue/eslint-config-prettier": "^7.0.0",
"eslint": "^8.5.0",
"eslint-plugin-vue": "^8.2.0",
"prettier": "^2.5.1",
"vite": "^2.9.1"
}
}