Skip to content

Commit 0c948e1

Browse files
committed
fixed paths
1 parent 722d55a commit 0c948e1

6 files changed

Lines changed: 16 additions & 17 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,27 @@
1+
# Simple workflow for deploying static content to GitHub Pages
12
name: Deploy static content to Pages
23

34
on:
5+
# Runs on pushes targeting the default branch
46
push:
57
branches: ['main']
8+
9+
# Allows you to run this workflow manually from the Actions tab
610
workflow_dispatch:
711

12+
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
813
permissions:
914
contents: read
1015
pages: write
1116
id-token: write
1217

18+
# Allow one concurrent deployment
1319
concurrency:
1420
group: 'pages'
1521
cancel-in-progress: true
1622

1723
jobs:
24+
# Single deploy job since we're just deploying
1825
deploy:
1926
environment:
2027
name: github-pages
@@ -23,28 +30,22 @@ jobs:
2330
steps:
2431
- name: Checkout
2532
uses: actions/checkout@v5
26-
2733
- name: Set up Node
2834
uses: actions/setup-node@v6
2935
with:
3036
node-version: lts/*
3137
cache: 'npm'
32-
cache-dependency-path: package-lock.json
33-
3438
- name: Install dependencies
3539
run: npm ci
36-
3740
- name: Build
3841
run: npm run build
39-
4042
- name: Setup Pages
4143
uses: actions/configure-pages@v5
42-
4344
- name: Upload artifact
4445
uses: actions/upload-pages-artifact@v4
4546
with:
46-
path: './nodewatch'
47-
47+
# Upload dist folder
48+
path: './dist'
4849
- name: Deploy to GitHub Pages
4950
id: deployment
50-
uses: actions/deploy-pages@v4
51+
uses: actions/deploy-pages@v4

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" href="/icons/binocular.png" />
5+
<link rel="icon" href="/nodewatch/icons/binocular.png" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>nodeWatch</title>
8+
<script type="module" crossorigin src="./src/main.jsx"></script>
89
</head>
910
<body>
1011
<div id="root"></div>
11-
<script type="module" src="/src/main.jsx"></script>
1212
</body>
1313
</html>

src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function App() {
126126
<Heading mb={0} fontSize="2xl">
127127
nodeWatch
128128
</Heading>
129-
<Image src={`/icons/nodewatcher.gif`} boxSize="40px" alt="nodewatch logo" />
129+
<Image src={`/nodewatch/icons/nodewatcher.gif`} boxSize="40px" alt="nodewatch logo" />
130130
</HStack>
131131

132132
<HStack gap={8}>

src/components/cards/CPUCard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const CPUCard = ({ host, cpuData, lastUpdated, columnCount }) => {
5656
<Status.Indicator />
5757
</Status.Root>
5858
<Heading size="md">{host}</Heading>
59-
<Image src={`/icons/${host}.gif`} boxSize="35px" alt="" />
59+
<Image src={`/nodewatch/icons/${host}.gif`} boxSize="35px" alt="" />
6060
</HStack>
6161
</Tooltip>
6262
<Badge colorPalette="cyan">CPU</Badge>

src/components/cards/GPUCard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const GPUCard = ({ host, gpuData, cpuData, hostMetaData, lastUpdated, columnCoun
6262
<Status.Root colorPalette="green"><Status.Indicator /></Status.Root>
6363
)}
6464
<Heading size="md">{host}</Heading>
65-
<Image src={`/icons/${host}.gif`} boxSize="35px" alt="" />
65+
<Image src={`/nodewatch/icons/${host}.gif`} boxSize="35px" alt="" />
6666
</HStack>
6767
</Tooltip>
6868
<Badge

vite.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,5 @@ import react from '@vitejs/plugin-react'
55
export default defineConfig({
66
plugins: [react()],
77
base: '/nodewatch/',
8-
build: {
9-
outDir: 'nodewatch',
10-
},
8+
119
})

0 commit comments

Comments
 (0)