Skip to content

Commit

Permalink
Revert "fix: implement hash-based routing for GitHub Pages"
Browse files Browse the repository at this point in the history
This reverts commit 8fdf3d8.
  • Loading branch information
ligsnf committed Dec 23, 2024
1 parent 8fdf3d8 commit bc65b20
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
import { StrictMode } from 'react'
import ReactDOM from 'react-dom/client'
import './index.css'
import { RouterProvider, createRouter, createHashHistory } from '@tanstack/react-router'
import { RouterProvider, createRouter } from '@tanstack/react-router'
import { ThemeProvider } from "@/components/theme/theme-provider"

// Import the generated route tree
import { routeTree } from './routeTree.gen'

// Create a hash history
const hashHistory = createHashHistory()

// Create a new router instance
const router = createRouter({
routeTree,
basepath: "/monash-grades-calculator/",
history: hashHistory,
})

// Register the router instance for type safety
Expand Down

0 comments on commit bc65b20

Please sign in to comment.