From 663eb61352e51a40426d7806fbce41183577fb03 Mon Sep 17 00:00:00 2001 From: donpat1to Date: Tue, 28 Oct 2025 23:54:28 +0100 Subject: [PATCH] added basic route for production --- .../src/components/Layout/FooterLinks/Features/Features.tsx | 2 +- frontend/vite.config.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/Layout/FooterLinks/Features/Features.tsx b/frontend/src/components/Layout/FooterLinks/Features/Features.tsx index facb593..86a8647 100644 --- a/frontend/src/components/Layout/FooterLinks/Features/Features.tsx +++ b/frontend/src/components/Layout/FooterLinks/Features/Features.tsx @@ -1,4 +1,4 @@ -// frontend/src/pages/Features/Features.tsx +// frontend/src/components/Layou/FooterLinks/Features/Features.tsx import React from 'react'; const Features: React.FC = () => { diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 7e6a61e..68a3555 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -61,6 +61,7 @@ export default defineConfig(({ mode }) => { sourcemap: isDevelopment ? 'inline' : false, // Generate deterministic hashes for better caching and security assetsDir: 'assets', + base: mode === 'production' ? '/' : '/', rollupOptions: { output: { // Security: Use content hashes for cache busting and integrity