Skip to content

Commit 4c090f2

Browse files
committed
fix: solve IPX issue with github pages
1 parent 040cda0 commit 4c090f2

File tree

6 files changed

+623
-1302
lines changed

6 files changed

+623
-1302
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
- run: corepack enable
1616
- uses: oven-sh/setup-bun@v2
1717

18+
# Ensure sharp is installed/rebuilt for Linux (IPX needs correct binaries)
19+
- run: bun add sharp
20+
- run: bun rebuild sharp
21+
1822
- run: bun install
1923
- run: bun run build
2024
env:

bun.lock

Lines changed: 615 additions & 1299 deletions
Large diffs are not rendered by default.

components/PizziHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
aria-label="Go to homepage"
1111
>
1212
<NuxtImg
13-
src="/img/pizziboi.png"
13+
src="/images/pizziboi.png"
1414
alt="Alessandro Pizzigolotto"
1515
sizes="sm:15vw md:15vw lg:6vw xl:6vw"
1616
/> AP

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"dependencies": {
1515
"@nuxt/eslint": "1.2.0",
16-
"@nuxt/image": "1.10.0",
16+
"@nuxt/image": "^2.0.0",
1717
"@nuxtjs/mdc": "0.17.2",
1818
"@nuxtjs/sitemap": "^7.4.3",
1919
"better-sqlite3": "^12.2.0",
@@ -22,6 +22,7 @@
2222
"motion-dom": "^12.23.6",
2323
"nuxt": "^3.17.7",
2424
"nuxt-gtag": "3.0.2",
25+
"sharp": "^0.34.5",
2526
"vue": "^3.5.17",
2627
"vue-router": "^4.5.1"
2728
},

pages/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
class="pizzi-pic"
2727
>
2828
<NuxtImg
29-
src="/img/pizziboi.png"
29+
src="/images/pizziboi.png"
3030
sizes="sm:23vw md:28vw lg:28vw xl:28vw"
3131
alt="pizziboi status symbol"
3232
preload

0 commit comments

Comments
 (0)