Skip to content

Commit

Permalink
Merge pull request #6 from Will513r/kenson/fix-base-domain
Browse files Browse the repository at this point in the history
Fix base domain
  • Loading branch information
kensonjohnson authored Jul 13, 2024
2 parents f7c7317 + 97c2397 commit 9874e66
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
18 changes: 18 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/node": "^20.14.10",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.13.1",
Expand Down
9 changes: 6 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

const base = process.env.NODE_ENV === "production" ? "/React-blog/" : "/";

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
})
base,
});

0 comments on commit 9874e66

Please sign in to comment.