diff --git a/.gitea/workflows/workflow.yaml b/.gitea/workflows/workflow.yaml index a1ff26e..976002f 100644 --- a/.gitea/workflows/workflow.yaml +++ b/.gitea/workflows/workflow.yaml @@ -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 diff --git a/package.json b/package.json index b0a020e..4d5879c 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/src/components/Gallery.js b/src/components/Gallery.js index 3983152..8168343 100644 --- a/src/components/Gallery.js +++ b/src/components/Gallery.js @@ -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)