fix: update port configuration across application files

- Changed the static server port from 5173 to 3007 in init.mjs, playwright.config.ts, vite.config.mts, and main.ts to ensure consistency in server setup and availability.
- Updated logging messages to reflect the new port configuration.
This commit is contained in:
Kacper
2025-12-18 15:35:05 +01:00
parent 8794156f28
commit c4a90d7f29
4 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
import { defineConfig, devices } from "@playwright/test";
const port = process.env.TEST_PORT || 5173;
const port = process.env.TEST_PORT || 3007;
const serverPort = process.env.TEST_SERVER_PORT || 3008;
const reuseServer = process.env.TEST_REUSE_SERVER === "true";
const mockAgent =

View File

@@ -29,7 +29,7 @@ let mainWindow: BrowserWindow | null = null;
let serverProcess: ChildProcess | null = null;
let staticServer: Server | null = null;
const SERVER_PORT = 3008;
const STATIC_PORT = 5173;
const STATIC_PORT = 3007;
/**
* Get icon path - works in both dev and production, cross-platform

View File

@@ -61,7 +61,7 @@ export default defineConfig(({ command }) => {
},
},
server: {
port: 5173,
port: 3007,
},
build: {
outDir: "dist",

View File

@@ -301,8 +301,8 @@ async function main() {
}
// Kill any existing processes on required ports
log('Checking for processes on ports 5173 and 3008...', 'yellow');
await killPort(5173);
log('Checking for processes on ports 3007 and 3008...', 'yellow');
await killPort(3007);
await killPort(3008);
console.log('');
@@ -377,7 +377,7 @@ async function main() {
}
log('✓ Server is ready!', 'green');
log(`The application will be available at: http://localhost:5173`, 'green');
log(`The application will be available at: http://localhost:3007`, 'green');
console.log('');
// Start web app