Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f99bc66

Browse filesBrowse files
committed
another dirty trick
1 parent 4fa6218 commit f99bc66
Copy full SHA for f99bc66

2 files changed

+3-2Lines changed: 3 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/nextjs.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/nextjs.yml
+2-1Lines 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
Collapse file

‎src/components/image.tsx‎

Copy file name to clipboardExpand all lines: src/components/image.tsx
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.