updated
Some checks failed
My Gatsby Deployment pipeline / build (push) Failing after 1m48s

This commit is contained in:
2025-03-15 23:19:52 +01:00
parent cb47a5289d
commit fd5c94254a
3 changed files with 8 additions and 10 deletions

View File

@@ -26,14 +26,15 @@ jobs:
- name: Install Dependencies
run: |
npm install --legacy-peer-deps
npm install -g gatsby-cli@5.12.12
npm install -g gatsby-cli@latest
- name: Clean Gatsby cache
run: npm run clean
run: |
gatsby clean
- name: Build Gatsby Site
run: |
npm run build
gatsby build
env:
NODE_ENV: production
CI: true

View File

@@ -16,9 +16,7 @@
"yet-another-react-lightbox": "^3.15.6",
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/react-fontawesome": "^0.2.0",
"ajv": "^8.12.0",
"ajv-keywords": "^5.1.0"
"@fortawesome/react-fontawesome": "^0.2.0"
},
"keywords": [
"gatsby"
@@ -34,8 +32,7 @@
"devDependencies": {
"prettier": "^3.1.0"
},
"resolutions": {
"ajv": "^8.12.0",
"ajv-keywords": "^5.1.0"
"engines": {
"node": ">=18.0.0"
}
}

View File

@@ -2,7 +2,7 @@ import React, { useState } from 'react'
import Lightbox from "yet-another-react-lightbox"
import "yet-another-react-lightbox/styles.css"
const Gallery = ({ images }) => {
const Gallery = ({ images = [] }) => {
const [isOpen, setIsOpen] = useState(false)
const [photoIndex, setPhotoIndex] = useState(0)