From d5dbefe5be0649df4fe37875a6bb3d95feadbd5b Mon Sep 17 00:00:00 2001 From: Axel Rindle Date: Tue, 3 Dec 2024 13:40:14 +0100 Subject: [PATCH] fix: specify router base path --- src/router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router.ts b/src/router.ts index 1fe8737..1a4e732 100644 --- a/src/router.ts +++ b/src/router.ts @@ -1,7 +1,7 @@ import { createRouter } from '@tanstack/react-router' import { routeTree } from './routeTree.gen' -const router = createRouter({ routeTree }) +const router = createRouter({ routeTree, basepath: import.meta.env.BASE_URL }) // Register the router instance for type safety declare module '@tanstack/react-router' {