Fix Next.js 15 compatibility

This commit is contained in:
Sam Becker 2025-10-26 11:15:33 -05:00
parent bd59a9ba83
commit 537e261570
2 changed files with 11 additions and 11 deletions

View File

@ -102,31 +102,31 @@ const getPhotosCacheKeys = (options: PhotoQueryOptions = {}) => {
};
export const revalidatePhotosKey = () =>
revalidateTag(KEY_PHOTOS, 'max');
revalidateTag(KEY_PHOTOS);
export const revalidateAlbumsKey = () =>
revalidateTag(KEY_ALBUMS, 'max');
revalidateTag(KEY_ALBUMS);
export const revalidateTagsKey = () =>
revalidateTag(KEY_TAGS, 'max');
revalidateTag(KEY_TAGS);
export const revalidateRecipesKey = () =>
revalidateTag(KEY_RECIPES, 'max');
revalidateTag(KEY_RECIPES);
export const revalidateCamerasKey = () =>
revalidateTag(KEY_CAMERAS, 'max');
revalidateTag(KEY_CAMERAS);
export const revalidateLensesKey = () =>
revalidateTag(KEY_LENSES, 'max');
revalidateTag(KEY_LENSES);
export const revalidateFilmsKey = () =>
revalidateTag(KEY_FILMS, 'max');
revalidateTag(KEY_FILMS);
export const revalidateFocalLengthsKey = () =>
revalidateTag(KEY_FOCAL_LENGTHS, 'max');
revalidateTag(KEY_FOCAL_LENGTHS);
export const revalidateYearsKey = () =>
revalidateTag(KEY_YEARS, 'max');
revalidateTag(KEY_YEARS);
export const revalidateAllKeys = () => {
revalidatePhotosKey();
@ -151,7 +151,7 @@ export const revalidateAllKeysAndPaths = () => {
export const revalidatePhoto = (photoId: string) => {
// Tags
revalidateTag(photoId, 'max');
revalidateTag(photoId);
revalidateYearsKey();
revalidateCamerasKey();
revalidateLensesKey();

View File

@ -371,7 +371,7 @@ export default function PhotoForm({
blurCompatibilityLevel="none"
width={thumbnailDimensions.width}
height={thumbnailDimensions.height}
preload
priority
/>;
return (