Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Commit

Permalink
chore: back to vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
sdanialraza committed Jan 6, 2024
1 parent e2f01b8 commit 2bfbf07
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 57 deletions.
55 changes: 0 additions & 55 deletions .github/workflows/deploy.yml

This file was deleted.

4 changes: 2 additions & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Analytics } from "@vercel/analytics/react"
import { createRoot } from "react-dom/client"
import { Toaster } from "react-hot-toast"
import { StrictMode } from "react"
import { createHashRouter, RouterProvider } from "react-router-dom"
import { createBrowserRouter, RouterProvider } from "react-router-dom"

import "./styles/globals.css"
import { routes } from "./pages"
Expand All @@ -11,6 +11,6 @@ createRoot(document.querySelector("#root")!).render(
<StrictMode>
<Analytics />
<Toaster />
<RouterProvider router={createHashRouter(routes)} />
<RouterProvider router={createBrowserRouter(routes)} />
</StrictMode>,
)
3 changes: 3 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"rewrites": [{ "source": "/(.*)", "destination": "/" }]
}

0 comments on commit 2bfbf07

Please sign in to comment.