Skip to content

Commit

Permalink
github pages may work now
Browse files Browse the repository at this point in the history
  • Loading branch information
sk337 committed Jan 22, 2024
1 parent 3d033e0 commit 762401e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
17 changes: 17 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0",
"description": "",
"main": "index.js",
"homepage": "https://sk337.github.io/SwordManager",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "vite",
Expand All @@ -21,6 +22,7 @@
"@vitejs/plugin-react": "^4.2.1",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"dotenv": "^16.3.2",
"lucide-react": "^0.314.0",
"node-fetch": "^3.2.6",
"react": "^18.2.0",
Expand Down
6 changes: 3 additions & 3 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,13 @@ export default function App() {
<p>
<span className="font-bold">Total:</span>
<br />
<span className="text-sky-500">kills: </span>
&nbsp;&nbsp;<span className="text-sky-500">kills: </span>
{prettyNum(pubInfo.totalStats.kills)}
<br />
<span className="text-sky-500">playTime: </span>
&nbsp;&nbsp;<span className="text-sky-500">playTime: </span>
{playtimeParse(pubInfo.totalStats.playtime)}
<br />
<span className="text-sky-500">rank: </span>
&nbsp;&nbsp;<span className="text-sky-500">rank: </span>
{prettyNum(pubInfo.rank)}
<br />
</p>
Expand Down
4 changes: 4 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { defineConfig } from 'vite';
import path from "path"
import react from '@vitejs/plugin-react';
import dotenv from 'dotenv';
dotenv.config();


// https://vitejs.dev/config/
export default defineConfig({
Expand All @@ -10,6 +13,7 @@ export default defineConfig({
}
}
)],
base: process.env.VITE_BASE_URL || "/",
server: {
hmr: false,
host: '0.0.0.0',
Expand Down

0 comments on commit 762401e

Please sign in to comment.