Change default server port from 3000 to 8080
Docker / Docker Build & Push (push) Successful in 4m45s
Lint / Lint (push) Successful in 45s
Tests / Go backend (push) Successful in 52s
Tests / Dashboard checks (push) Successful in 50s

Updates the default PORT across backend, Dockerfile, README docs, the
Android client's fallback URLs/placeholders, and the frontend dev proxy.
Touched files also pick up line-ending normalization (CRLF->LF) with no
other content changes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Gabriel20xxandClaude Sonnet 5 committed 2026-09-08 17:05:34 +02:00
1 parent 84a32fe6b4
commit f84907eb9b
11 files changed
+1042 -1042

No files matched your search

+43 -43
View File
@@ -1,43 +1,43 @@
import fs from 'node:fs';
import path from 'node:path';
import tailwindcss from '@tailwindcss/vite';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
// Real installed frontend dependency versions for the About page, resolved from
// node_modules (not the package.json semver range) so it can't drift from what's bundled.
const FRONTEND_TECH_STACK_PACKAGES = [
{ name: 'Svelte', pkg: 'svelte' },
{ name: 'SvelteKit', pkg: '@sveltejs/kit' },
{ name: 'TanStack Query', pkg: '@tanstack/svelte-query' },
{ name: 'Tailwind CSS', pkg: 'tailwindcss' },
{ name: 'Vite', pkg: 'vite' },
];
function readInstalledVersion(pkg) {
try {
const pkgJsonPath = path.resolve(import.meta.dirname, 'node_modules', pkg, 'package.json');
return JSON.parse(fs.readFileSync(pkgJsonPath, 'utf-8')).version ?? null;
} catch {
return null;
}
}
const frontendTechStack = FRONTEND_TECH_STACK_PACKAGES.flatMap(({ name, pkg }) => {
const version = readInstalledVersion(pkg);
return version ? [{ name, version }] : [];
});
export default defineConfig({
plugins: [tailwindcss(), sveltekit()],
define: {
__FRONTEND_TECH_STACK__: JSON.stringify(frontendTechStack),
},
server: {
port: 5173,
proxy: {
'/web': 'http://localhost:3000',
'/health': 'http://localhost:3000',
},
},
});
import fs from 'node:fs';
import path from 'node:path';
import tailwindcss from '@tailwindcss/vite';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
// Real installed frontend dependency versions for the About page, resolved from
// node_modules (not the package.json semver range) so it can't drift from what's bundled.
const FRONTEND_TECH_STACK_PACKAGES = [
{ name: 'Svelte', pkg: 'svelte' },
{ name: 'SvelteKit', pkg: '@sveltejs/kit' },
{ name: 'TanStack Query', pkg: '@tanstack/svelte-query' },
{ name: 'Tailwind CSS', pkg: 'tailwindcss' },
{ name: 'Vite', pkg: 'vite' },
];
function readInstalledVersion(pkg) {
try {
const pkgJsonPath = path.resolve(import.meta.dirname, 'node_modules', pkg, 'package.json');
return JSON.parse(fs.readFileSync(pkgJsonPath, 'utf-8')).version ?? null;
} catch {
return null;
}
}
const frontendTechStack = FRONTEND_TECH_STACK_PACKAGES.flatMap(({ name, pkg }) => {
const version = readInstalledVersion(pkg);
return version ? [{ name, version }] : [];
});
export default defineConfig({
plugins: [tailwindcss(), sveltekit()],
define: {
__FRONTEND_TECH_STACK__: JSON.stringify(frontendTechStack),
},
server: {
port: 5173,
proxy: {
'/web': 'http://localhost:8080',
'/health': 'http://localhost:8080',
},
},
});