From df68854e139d689e041c97f7c24928416153fb69 Mon Sep 17 00:00:00 2001 From: Igor Wasinski Date: Sat, 9 May 2026 21:32:05 +0200 Subject: [PATCH 1/3] fix: add browser polyfills and clean up routing paths --- frontend/index.html | 4 ++++ frontend/src/components/Content/index.tsx | 6 +++--- frontend/src/components/Navbar/index.tsx | 6 +++--- frontend/src/index.tsx | 1 + frontend/vite.config.ts | 7 +++++++ 5 files changed, 18 insertions(+), 6 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index ee831f0..f761b79 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -16,6 +16,10 @@ +
diff --git a/frontend/src/components/Content/index.tsx b/frontend/src/components/Content/index.tsx index 4221130..9ae8eb0 100644 --- a/frontend/src/components/Content/index.tsx +++ b/frontend/src/components/Content/index.tsx @@ -16,9 +16,9 @@ export default class Content extends Component { return (
- } /> - } /> - } /> + } /> + } /> + } />
) diff --git a/frontend/src/components/Navbar/index.tsx b/frontend/src/components/Navbar/index.tsx index 835b04c..ba8b215 100644 --- a/frontend/src/components/Navbar/index.tsx +++ b/frontend/src/components/Navbar/index.tsx @@ -19,21 +19,21 @@ export default () =>
(isActive ? "selected" : "")} - to="/redshift/" + to="/" end > Home (isActive ? "selected" : "")} - to="/redshift/about" + to="/about" end > About (isActive ? "selected" : "")} - to="/redshift/contact" + to="/contact" end > Contact diff --git a/frontend/src/index.tsx b/frontend/src/index.tsx index 03eddf7..0c6cc44 100644 --- a/frontend/src/index.tsx +++ b/frontend/src/index.tsx @@ -1,6 +1,7 @@ import { Buffer } from "buffer" if (typeof window !== "undefined") { window.Buffer = Buffer; + window.process = { env: { NODE_ENV: "development" } }; } import React from "react" import { createRoot } from "react-dom/client" diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 7558122..32e3425 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -9,5 +9,12 @@ export default defineConfig({ 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'development'), 'process.env': {}, 'global': 'globalThis' + }, + server: { + fs: { + allow: [ + '..', // Allow access to monorepo root (for node_modules, etc.) + ] + } } }) From c5f2753d8d670566ee6b2b6b897615749501cee8 Mon Sep 17 00:00:00 2001 From: Igor Wasinski Date: Sat, 9 May 2026 21:35:54 +0200 Subject: [PATCH 2/3] chore: revert path changes and keep environment fixes --- frontend/src/components/Content/index.tsx | 6 +++--- frontend/src/components/Navbar/index.tsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/Content/index.tsx b/frontend/src/components/Content/index.tsx index 9ae8eb0..4221130 100644 --- a/frontend/src/components/Content/index.tsx +++ b/frontend/src/components/Content/index.tsx @@ -16,9 +16,9 @@ export default class Content extends Component { return (
- } /> - } /> - } /> + } /> + } /> + } />
) diff --git a/frontend/src/components/Navbar/index.tsx b/frontend/src/components/Navbar/index.tsx index ba8b215..835b04c 100644 --- a/frontend/src/components/Navbar/index.tsx +++ b/frontend/src/components/Navbar/index.tsx @@ -19,21 +19,21 @@ export default () =>
(isActive ? "selected" : "")} - to="/" + to="/redshift/" end > Home (isActive ? "selected" : "")} - to="/about" + to="/redshift/about" end > About (isActive ? "selected" : "")} - to="/contact" + to="/redshift/contact" end > Contact From f17a67048f1b19c25768e98a72f8fef2e1a45ff6 Mon Sep 17 00:00:00 2001 From: Igor Wasinski Date: Sat, 9 May 2026 21:37:54 +0200 Subject: [PATCH 3/3] fix: add vite-env.d.ts for static asset types --- frontend/src/vite-env.d.ts | 1 + 1 file changed, 1 insertion(+) create mode 100644 frontend/src/vite-env.d.ts diff --git a/frontend/src/vite-env.d.ts b/frontend/src/vite-env.d.ts new file mode 100644 index 0000000..11f02fe --- /dev/null +++ b/frontend/src/vite-env.d.ts @@ -0,0 +1 @@ +///