Skip to content

Commit 4f7e160

Browse files
committed
Fix base path
1 parent 2f827a5 commit 4f7e160

3 files changed

Lines changed: 5 additions & 10 deletions

File tree

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const dragFill: BrowserCommand<[from: string, to: string]> = async (context, fro
4444
const viewport = { width: 1920, height: 1080 } as const;
4545

4646
export default defineConfig(({ command, isPreview }) => ({
47-
// base: '/react-data-grid/',
47+
base: '/react-data-grid/',
4848
cacheDir: '.cache/vite',
4949
clearScreen: false,
5050
build: {

website/router.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
import {
2-
// createHashHistory,
3-
createRouter as createTanStackRouter,
4-
ErrorComponent
5-
} from '@tanstack/react-router';
1+
import { createRouter as createTanStackRouter, ErrorComponent } from '@tanstack/react-router';
62

73
import { routeTree } from './routeTree.gen';
84

95
export function createRouter() {
106
return createTanStackRouter({
7+
basepath: '/react-data-grid/',
118
routeTree,
12-
// history: createHashHistory(),
139
caseSensitive: true,
1410
defaultErrorComponent: ErrorComponent,
1511
defaultNotFoundComponent: NotFound,

website/routes/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { redirect } from '@tanstack/react-router';
1+
// import { redirect } from '@tanstack/react-router';
22

33
export const Route = createFileRoute({
44
beforeLoad() {
5-
// eslint-disable-next-line @typescript-eslint/only-throw-error
6-
throw redirect({ to: '/CommonFeatures' });
5+
// throw redirect({ to: '/CommonFeatures' });
76
}
87
});

0 commit comments

Comments
 (0)