Skip to content

Commit

Permalink
disable pre-rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
eonurk committed Jul 26, 2024
1 parent 807232e commit a3fe39a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ I think we will learn the answer soon.

### TO-DO

- [ ] Add blog site
- [x] Add blog site
- [ ] UI fixes
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"version": "0.0.0",
"type": "module",
"homepage": "https://eonurk.github.io/celvox-site",
"homepage": "https://celvox.co",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
Expand Down
2 changes: 1 addition & 1 deletion public/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// https://username.github.io/repo-name/one/two?a=b&c=d#qwe becomes
// https://username.github.io/repo-name/?/one/two&a=b~and~c=d#qwe
// Otherwise, leave pathSegmentsToKeep as 0.
var pathSegmentsToKeep = 1;
var pathSegmentsToKeep = 0;

var l = window.location;
l.replace(
Expand Down
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { BlogPage } from "@/pages/Blog";
function App() {
return (
<>
<Router basename="/celvox-site">
<Router basename="">
<Routes>
<Route path="/" element={<Home />} />
<Route path="/about" element={<About />} />
Expand Down
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import react from "@vitejs/plugin-react";
import { ssr } from "vite-plugin-ssr/plugin";

Check failure on line 4 in vite.config.ts

View workflow job for this annotation

GitHub Actions / deploy

'ssr' is declared but its value is never read.

export default defineConfig({
plugins: [react(), ssr({ prerender: true })],
plugins: [react()],
build: {
sourcemap: true, // This enables sourcemap generation
},
base: "/celvox-site/", // This tells Vite to use relative paths
// base: "/", // This tells Vite to use relative paths
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
Expand Down

0 comments on commit a3fe39a

Please sign in to comment.