Skip to content

Commit 3d405cb

Browse files
committed
fix(routing): remove basename
1 parent cb001a7 commit 3d405cb

File tree

4 files changed

+3
-22
lines changed

4 files changed

+3
-22
lines changed

README.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,6 @@ npm i
3636
npm run dev
3737
```
3838

39-
## Notes for when hosting somewhere other than github pages
40-
- Update vite.config.ts to remove base: "/solvenergy-source"
41-
- update App.tsx to remove basename from <BrowserRouter basename="/solvenergy-source">
42-
43-
**Edit a file directly in GitHub**
44-
45-
- Navigate to the desired file(s).
46-
- Click the "Edit" button (pencil icon) at the top right of the file view.
47-
- Make your changes and commit the changes.
48-
49-
**Use GitHub Codespaces**
50-
51-
- Navigate to the main page of your repository.
52-
- Click on the "Code" button (green button) near the top right.
53-
- Select the "Codespaces" tab.
54-
- Click on "New codespace" to launch a new Codespace environment.
55-
- Edit files directly within the Codespace and commit and push your changes once you're done.
56-
5739
## What technologies are used for this project?
5840

5941
This project is built with:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": false,
44
"version": "0.1.0",
55
"type": "module",
6-
"homepage": "https://skrispyb.github.io/solvenergy-source/",
6+
"homepage": "https://solvenergy-in/",
77
"scripts": {
88
"dev": "vite",
99
"build": "vite build",

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const App = () => (
2222
<TooltipProvider>
2323
<Toaster />
2424
<Sonner />
25-
<BrowserRouter basename="/solvenergy-source">
25+
<BrowserRouter>
2626
<Routes>
2727
<Route path="/" element={<Index />} />
2828
<Route path="/solar-panels" element={<SolarPanels />} />

vite.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@ export default defineConfig(({ mode }) => ({
1818
alias: {
1919
"@": path.resolve(__dirname, "./src"),
2020
},
21-
},
22-
base: "/solvenergy-source"
21+
}
2322
}));

0 commit comments

Comments
 (0)