Merge branch 'main' into release/1.7.30
Build and Push Docker Image / build (push) Successful in 57s

This commit is contained in:
2026-05-28 08:04:49 +01:00
2 changed files with 39 additions and 25 deletions
+17 -5
View File
@@ -1,7 +1,16 @@
// Copyright (c) 2026 Gordon Bolton. MIT License. // Copyright (c) 2026 Gordon Bolton. MIT License.
import { defineConfig } from 'vite' import { defineConfig, loadEnv } from 'vite'
import path from 'path'
export default defineConfig({ export default defineConfig(({ mode }) => {
// Load env variables from root directory to match backend TLS configuration
const env = loadEnv(mode, path.resolve(__dirname, '..'), '');
const port = env.PORT || 3001;
const tlsEnabled = (env.TLS_ENABLED || 'true').toLowerCase() !== 'false';
const target = `${tlsEnabled ? 'https' : 'http'}://localhost:${port}`;
return {
build: { build: {
outDir: '../public', outDir: '../public',
emptyOutDir: false, emptyOutDir: false,
@@ -18,11 +27,14 @@ export default defineConfig({
}, },
server: { server: {
port: 5173, port: 5173,
host: true, // Listen on all network interfaces
proxy: { proxy: {
'/api': { '/api': {
target: 'http://localhost:3001', target: target,
changeOrigin: true changeOrigin: true,
secure: false // Allow self-signed certificate in development
} }
} }
} }
}) };
});
+3 -1
View File
@@ -4,7 +4,9 @@
"description": "A personal media download dashboard that shows your downloads 'so far' while you relax on the sofa waiting for your *arr services to finish", "description": "A personal media download dashboard that shows your downloads 'so far' while you relax on the sofa waiting for your *arr services to finish",
"main": "server/index.js", "main": "server/index.js",
"scripts": { "scripts": {
"dev": "nodemon server/index.js", "dev:server": "nodemon server/index.js",
"dev:client": "npm run dev --prefix client",
"dev": "concurrently -n 'server,client' -c 'blue,green' 'npm run dev:server' 'npm run dev:client'",
"start": "node server/index.js", "start": "node server/index.js",
"install:all": "npm install", "install:all": "npm install",
"test": "vitest run", "test": "vitest run",