From c8ed5871cebc9c280f167b8a9ae953d336811468 Mon Sep 17 00:00:00 2001 From: Hayden Hargreaves Date: Wed, 5 Mar 2025 17:00:50 -0700 Subject: [PATCH] FIX: Switched port to 3100 for frontend --- backend/src/server.ts | 2 +- frontend/vite.config.js | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/backend/src/server.ts b/backend/src/server.ts index 57cebac..f5dfede 100644 --- a/backend/src/server.ts +++ b/backend/src/server.ts @@ -35,7 +35,7 @@ const INVALID_EXTS: string[] = ["exe", "dll", "obj", "lib", "bin", "dat", "pdf", * TODO: Update hosts for production */ const corsOptions: cors.CorsOptions = { - origin: ["http://localhost:5173"], + origin: ["http://localhost:3100"], methods: ["GET"] }; APP.use(cors(corsOptions)); diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 52c4ad0..9c1d769 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -1,10 +1,13 @@ -import { defineConfig } from 'vite' +import {defineConfig} from 'vite' import react from '@vitejs/plugin-react' import tailwindcss from "@tailwindcss/vite"; // https://vite.dev/config/ export default defineConfig({ - plugins: [ - react(), tailwindcss(), - ], + server: { + port: 3100, + }, + plugins: [ + react(), tailwindcss(), + ], })