From 356e1d868cb1c65624d0b48d94ca01bbeb52c261 Mon Sep 17 00:00:00 2001 From: ribardej Date: Thu, 30 Oct 2025 13:23:51 +0100 Subject: [PATCH] fix(frontend): CNB API fix --- 7project/frontend/vite.config.ts | 17 ----------------- 7project/meetings/2025-10-30-meeting.md | 8 ++++---- 2 files changed, 4 insertions(+), 21 deletions(-) diff --git a/7project/frontend/vite.config.ts b/7project/frontend/vite.config.ts index 1bb71cf..e878765 100644 --- a/7project/frontend/vite.config.ts +++ b/7project/frontend/vite.config.ts @@ -4,21 +4,4 @@ import react from '@vitejs/plugin-react' // https://vite.dev/config/ export default defineConfig({ plugins: [react()], - server: { - proxy: { - // We'll proxy any request that starts with '/api-cnb' - '/api-cnb': { - // This is the real API server we want to talk to - target: 'https://api.cnb.cz', - - // This is crucial: it changes the 'Origin' header - // to match the target, so the CNB server is happy. - changeOrigin: true, - - // This rewrites the request path. It removes the '/api-cnb' part - // so the CNB server gets the correct path ('/cnbapi/exrates/daily...'). - rewrite: (path) => path.replace(/^\/api-cnb/, ''), - }, - }, - }, }) diff --git a/7project/meetings/2025-10-30-meeting.md b/7project/meetings/2025-10-30-meeting.md index 1d06bdf..aa3c380 100644 --- a/7project/meetings/2025-10-30-meeting.md +++ b/7project/meetings/2025-10-30-meeting.md @@ -43,9 +43,9 @@ The tracker should not store the transactions in the database - security vulnera Last 3 minutes of the meeting, summarize action items. -- [ ] Dont store data in database (security) - Load it on login (from CSAS API and local database), load automatically with email -- [ ] Go through the checklist -- [ ] Look for possible APIs (like stocks or financial details whatever) -- [ ] Report +- [ ] Change the name on frontend from 7project +- [ ] Finalize the funcionality and everyting in the code part +- [ ] Try to finalize report with focus on reproducibility +- [ ] More high level explanation of the workflow in the report --- \ No newline at end of file