chore: fix compilation

This commit is contained in:
Thomas Camlong
2025-11-17 10:38:10 +01:00
parent 2cfc1949b7
commit 8da2d306c7
4 changed files with 43 additions and 43 deletions

82
web/pnpm-lock.yaml generated
View File

@@ -141,8 +141,8 @@ importers:
specifier: ^12.23.24 specifier: ^12.23.24
version: 12.23.24(react-dom@19.2.0(react@19.2.0))(react@19.2.0) version: 12.23.24(react-dom@19.2.0(react@19.2.0))(react@19.2.0)
next: next:
specifier: 16.0.3 specifier: 16.0.1
version: 16.0.3(react-dom@19.2.0(react@19.2.0))(react@19.2.0) version: 16.0.1(react-dom@19.2.0(react@19.2.0))(react@19.2.0)
next-themes: next-themes:
specifier: ^0.4.6 specifier: ^0.4.6
version: 0.4.6(react-dom@19.2.0(react@19.2.0))(react@19.2.0) version: 0.4.6(react-dom@19.2.0(react@19.2.0))(react@19.2.0)
@@ -769,53 +769,53 @@ packages:
'@jridgewell/trace-mapping@0.3.9': '@jridgewell/trace-mapping@0.3.9':
resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==}
'@next/env@16.0.3': '@next/env@16.0.1':
resolution: {integrity: sha512-IqgtY5Vwsm14mm/nmQaRMmywCU+yyMIYfk3/MHZ2ZTJvwVbBn3usZnjMi1GacrMVzVcAxJShTCpZlPs26EdEjQ==} resolution: {integrity: sha512-LFvlK0TG2L3fEOX77OC35KowL8D7DlFF45C0OvKMC4hy8c/md1RC4UMNDlUGJqfCoCS2VWrZ4dSE6OjaX5+8mw==}
'@next/swc-darwin-arm64@16.0.3': '@next/swc-darwin-arm64@16.0.1':
resolution: {integrity: sha512-MOnbd92+OByu0p6QBAzq1ahVWzF6nyfiH07dQDez4/Nku7G249NjxDVyEfVhz8WkLiOEU+KFVnqtgcsfP2nLXg==} resolution: {integrity: sha512-R0YxRp6/4W7yG1nKbfu41bp3d96a0EalonQXiMe+1H9GTHfKxGNCGFNWUho18avRBPsO8T3RmdWuzmfurlQPbg==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
cpu: [arm64] cpu: [arm64]
os: [darwin] os: [darwin]
'@next/swc-darwin-x64@16.0.3': '@next/swc-darwin-x64@16.0.1':
resolution: {integrity: sha512-i70C4O1VmbTivYdRlk+5lj9xRc2BlK3oUikt3yJeHT1unL4LsNtN7UiOhVanFdc7vDAgZn1tV/9mQwMkWOJvHg==} resolution: {integrity: sha512-kETZBocRux3xITiZtOtVoVvXyQLB7VBxN7L6EPqgI5paZiUlnsgYv4q8diTNYeHmF9EiehydOBo20lTttCbHAg==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
cpu: [x64] cpu: [x64]
os: [darwin] os: [darwin]
'@next/swc-linux-arm64-gnu@16.0.3': '@next/swc-linux-arm64-gnu@16.0.1':
resolution: {integrity: sha512-O88gCZ95sScwD00mn/AtalyCoykhhlokxH/wi1huFK+rmiP5LAYVs/i2ruk7xST6SuXN4NI5y4Xf5vepb2jf6A==} resolution: {integrity: sha512-hWg3BtsxQuSKhfe0LunJoqxjO4NEpBmKkE+P2Sroos7yB//OOX3jD5ISP2wv8QdUwtRehMdwYz6VB50mY6hqAg==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
cpu: [arm64] cpu: [arm64]
os: [linux] os: [linux]
'@next/swc-linux-arm64-musl@16.0.3': '@next/swc-linux-arm64-musl@16.0.1':
resolution: {integrity: sha512-CEErFt78S/zYXzFIiv18iQCbRbLgBluS8z1TNDQoyPi8/Jr5qhR3e8XHAIxVxPBjDbEMITprqELVc5KTfFj0gg==} resolution: {integrity: sha512-UPnOvYg+fjAhP3b1iQStcYPWeBFRLrugEyK/lDKGk7kLNua8t5/DvDbAEFotfV1YfcOY6bru76qN9qnjLoyHCQ==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
cpu: [arm64] cpu: [arm64]
os: [linux] os: [linux]
'@next/swc-linux-x64-gnu@16.0.3': '@next/swc-linux-x64-gnu@16.0.1':
resolution: {integrity: sha512-Tc3i+nwt6mQ+Dwzcri/WNDj56iWdycGVh5YwwklleClzPzz7UpfaMw1ci7bLl6GRYMXhWDBfe707EXNjKtiswQ==} resolution: {integrity: sha512-Et81SdWkcRqAJziIgFtsFyJizHoWne4fzJkvjd6V4wEkWTB4MX6J0uByUb0peiJQ4WeAt6GGmMszE5KrXK6WKg==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
cpu: [x64] cpu: [x64]
os: [linux] os: [linux]
'@next/swc-linux-x64-musl@16.0.3': '@next/swc-linux-x64-musl@16.0.1':
resolution: {integrity: sha512-zTh03Z/5PBBPdTurgEtr6nY0vI9KR9Ifp/jZCcHlODzwVOEKcKRBtQIGrkc7izFgOMuXDEJBmirwpGqdM/ZixA==} resolution: {integrity: sha512-qBbgYEBRrC1egcG03FZaVfVxrJm8wBl7vr8UFKplnxNRprctdP26xEv9nJ07Ggq4y1adwa0nz2mz83CELY7N6Q==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
cpu: [x64] cpu: [x64]
os: [linux] os: [linux]
'@next/swc-win32-arm64-msvc@16.0.3': '@next/swc-win32-arm64-msvc@16.0.1':
resolution: {integrity: sha512-Jc1EHxtZovcJcg5zU43X3tuqzl/sS+CmLgjRP28ZT4vk869Ncm2NoF8qSTaL99gh6uOzgM99Shct06pSO6kA6g==} resolution: {integrity: sha512-cPuBjYP6I699/RdbHJonb3BiRNEDm5CKEBuJ6SD8k3oLam2fDRMKAvmrli4QMDgT2ixyRJ0+DTkiODbIQhRkeQ==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
cpu: [arm64] cpu: [arm64]
os: [win32] os: [win32]
'@next/swc-win32-x64-msvc@16.0.3': '@next/swc-win32-x64-msvc@16.0.1':
resolution: {integrity: sha512-N7EJ6zbxgIYpI/sWNzpVKRMbfEGgsWuOIvzkML7wxAAZhPk1Msxuo/JDu1PKjWGrAoOLaZcIX5s+/pF5LIbBBg==} resolution: {integrity: sha512-XeEUJsE4JYtfrXe/LaJn3z1pD19fK0Q6Er8Qoufi+HqvdO4LEPyCxLUt4rxA+4RfYo6S9gMlmzCMU2F+AatFqQ==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
cpu: [x64] cpu: [x64]
os: [win32] os: [win32]
@@ -2126,8 +2126,8 @@ packages:
react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
next@16.0.3: next@16.0.1:
resolution: {integrity: sha512-Ka0/iNBblPFcIubTA1Jjh6gvwqfjrGq1Y2MTI5lbjeLIAfmC+p5bQmojpRZqgHHVu5cG4+qdIiwXiBSm/8lZ3w==} resolution: {integrity: sha512-e9RLSssZwd35p7/vOa+hoDFggUZIUbZhIUSLZuETCwrCVvxOs87NamoUzT+vbcNAL8Ld9GobBnWOA6SbV/arOw==}
engines: {node: '>=20.9.0'} engines: {node: '>=20.9.0'}
hasBin: true hasBin: true
peerDependencies: peerDependencies:
@@ -2847,30 +2847,30 @@ snapshots:
'@jridgewell/resolve-uri': 3.1.2 '@jridgewell/resolve-uri': 3.1.2
'@jridgewell/sourcemap-codec': 1.5.5 '@jridgewell/sourcemap-codec': 1.5.5
'@next/env@16.0.3': {} '@next/env@16.0.1': {}
'@next/swc-darwin-arm64@16.0.3': '@next/swc-darwin-arm64@16.0.1':
optional: true optional: true
'@next/swc-darwin-x64@16.0.3': '@next/swc-darwin-x64@16.0.1':
optional: true optional: true
'@next/swc-linux-arm64-gnu@16.0.3': '@next/swc-linux-arm64-gnu@16.0.1':
optional: true optional: true
'@next/swc-linux-arm64-musl@16.0.3': '@next/swc-linux-arm64-musl@16.0.1':
optional: true optional: true
'@next/swc-linux-x64-gnu@16.0.3': '@next/swc-linux-x64-gnu@16.0.1':
optional: true optional: true
'@next/swc-linux-x64-musl@16.0.3': '@next/swc-linux-x64-musl@16.0.1':
optional: true optional: true
'@next/swc-win32-arm64-msvc@16.0.3': '@next/swc-win32-arm64-msvc@16.0.1':
optional: true optional: true
'@next/swc-win32-x64-msvc@16.0.3': '@next/swc-win32-x64-msvc@16.0.1':
optional: true optional: true
'@poppinss/colors@4.1.5': '@poppinss/colors@4.1.5':
@@ -4158,9 +4158,9 @@ snapshots:
react: 19.2.0 react: 19.2.0
react-dom: 19.2.0(react@19.2.0) react-dom: 19.2.0(react@19.2.0)
next@16.0.3(react-dom@19.2.0(react@19.2.0))(react@19.2.0): next@16.0.1(react-dom@19.2.0(react@19.2.0))(react@19.2.0):
dependencies: dependencies:
'@next/env': 16.0.3 '@next/env': 16.0.1
'@swc/helpers': 0.5.15 '@swc/helpers': 0.5.15
caniuse-lite: 1.0.30001726 caniuse-lite: 1.0.30001726
postcss: 8.4.31 postcss: 8.4.31
@@ -4168,14 +4168,14 @@ snapshots:
react-dom: 19.2.0(react@19.2.0) react-dom: 19.2.0(react@19.2.0)
styled-jsx: 5.1.6(react@19.2.0) styled-jsx: 5.1.6(react@19.2.0)
optionalDependencies: optionalDependencies:
'@next/swc-darwin-arm64': 16.0.3 '@next/swc-darwin-arm64': 16.0.1
'@next/swc-darwin-x64': 16.0.3 '@next/swc-darwin-x64': 16.0.1
'@next/swc-linux-arm64-gnu': 16.0.3 '@next/swc-linux-arm64-gnu': 16.0.1
'@next/swc-linux-arm64-musl': 16.0.3 '@next/swc-linux-arm64-musl': 16.0.1
'@next/swc-linux-x64-gnu': 16.0.3 '@next/swc-linux-x64-gnu': 16.0.1
'@next/swc-linux-x64-musl': 16.0.3 '@next/swc-linux-x64-musl': 16.0.1
'@next/swc-win32-arm64-msvc': 16.0.3 '@next/swc-win32-arm64-msvc': 16.0.1
'@next/swc-win32-x64-msvc': 16.0.3 '@next/swc-win32-x64-msvc': 16.0.1
sharp: 0.34.5 sharp: 0.34.5
transitivePeerDependencies: transitivePeerDependencies:
- '@babel/core' - '@babel/core'

View File

@@ -3,7 +3,6 @@ import { ImageResponse } from "next/og"
import { getCommunityGalleryRecord, getCommunitySubmissionByName, getCommunitySubmissions } from "@/lib/community" import { getCommunityGalleryRecord, getCommunitySubmissionByName, getCommunitySubmissions } from "@/lib/community"
export const revalidate = 21600 // 6 hours export const revalidate = 21600 // 6 hours
export const runtime = 'edge';
export async function generateStaticParams() { export async function generateStaticParams() {
const icons = await getCommunitySubmissions() const icons = await getCommunitySubmissions()

View File

@@ -3,7 +3,6 @@ import { join } from "node:path"
import { ImageResponse } from "next/og" import { ImageResponse } from "next/og"
import { getAllIcons } from "@/lib/api" import { getAllIcons } from "@/lib/api"
export const runtime = 'edge';
export const revalidate = false export const revalidate = false
export async function generateStaticParams() { export async function generateStaticParams() {

View File

@@ -11,3 +11,5 @@ export class ApiError extends Error {
} }
} }