Skip to content

Commit f99bc66

Browse files
committed
another dirty trick
1 parent 4fa6218 commit f99bc66

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/nextjs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ jobs:
8080
runs-on: ubuntu-latest
8181
needs: build
8282
steps:
83-
- run: echo "$BASE_PATH this is the base path"
83+
- name: What is Base Path
84+
run: echo "$BASE_PATH this is the base path"
8485
- name: Deploy to GitHub Pages
8586
id: deployment
8687
uses: actions/deploy-pages@v4

src/components/image.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const Image: React.FC<Props> = ({
3232

3333
return (
3434
<img
35-
src={`${process.env.BASE_PATH ? process.env.BASE_PATH : ""}${src}`}
35+
src={`${process.env.BASE_PATH ? process.env.BASE_PATH : "/"}${src}`}
3636
alt={alt}
3737
sx={{ width: finalWidth, height: finalHeight, objectFit }}
3838
className={className}

0 commit comments

Comments
 (0)