Temporarily enable prefetching
This commit is contained in:
parent
3bb3144eff
commit
66506ebf6e
@ -1,5 +1,6 @@
|
|||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import { clsx } from 'clsx/lite';
|
import { clsx } from 'clsx/lite';
|
||||||
|
import { SHOULD_PREFETCH } from '@/site/config';
|
||||||
|
|
||||||
export default function SwitcherItem({
|
export default function SwitcherItem({
|
||||||
icon,
|
icon,
|
||||||
@ -8,7 +9,7 @@ export default function SwitcherItem({
|
|||||||
onClick,
|
onClick,
|
||||||
active,
|
active,
|
||||||
noPadding,
|
noPadding,
|
||||||
prefetch = false,
|
prefetch = SHOULD_PREFETCH,
|
||||||
}: {
|
}: {
|
||||||
icon: JSX.Element
|
icon: JSX.Element
|
||||||
href?: string
|
href?: string
|
||||||
|
|||||||
@ -19,13 +19,14 @@ import AdminPhotoMenu from '@/admin/AdminPhotoMenu';
|
|||||||
import { Suspense } from 'react';
|
import { Suspense } from 'react';
|
||||||
import DivDebugBaselineGrid from '@/components/DivDebugBaselineGrid';
|
import DivDebugBaselineGrid from '@/components/DivDebugBaselineGrid';
|
||||||
import PhotoLink from './PhotoLink';
|
import PhotoLink from './PhotoLink';
|
||||||
|
import { SHOULD_PREFETCH } from '@/site/config';
|
||||||
|
|
||||||
export default function PhotoLarge({
|
export default function PhotoLarge({
|
||||||
photo,
|
photo,
|
||||||
primaryTag,
|
primaryTag,
|
||||||
priority,
|
priority,
|
||||||
prefetch = false,
|
prefetch = SHOULD_PREFETCH,
|
||||||
prefetchRelatedLinks = false,
|
prefetchRelatedLinks = SHOULD_PREFETCH,
|
||||||
showCamera = true,
|
showCamera = true,
|
||||||
showSimulation = true,
|
showSimulation = true,
|
||||||
shouldShareTag,
|
shouldShareTag,
|
||||||
|
|||||||
@ -5,6 +5,7 @@ import { clsx } from 'clsx/lite';
|
|||||||
import { pathForPhoto } from '@/site/paths';
|
import { pathForPhoto } from '@/site/paths';
|
||||||
import { Camera } from '@/camera';
|
import { Camera } from '@/camera';
|
||||||
import { FilmSimulation } from '@/simulation';
|
import { FilmSimulation } from '@/simulation';
|
||||||
|
import { SHOULD_PREFETCH } from '@/site/config';
|
||||||
|
|
||||||
export default function PhotoSmall({
|
export default function PhotoSmall({
|
||||||
photo,
|
photo,
|
||||||
@ -13,7 +14,7 @@ export default function PhotoSmall({
|
|||||||
simulation,
|
simulation,
|
||||||
selected,
|
selected,
|
||||||
priority,
|
priority,
|
||||||
prefetch = false,
|
prefetch = SHOULD_PREFETCH,
|
||||||
}: {
|
}: {
|
||||||
photo: Photo
|
photo: Photo
|
||||||
tag?: string
|
tag?: string
|
||||||
|
|||||||
@ -3,13 +3,14 @@ import ImageTiny from '@/components/ImageTiny';
|
|||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import { clsx } from 'clsx/lite';
|
import { clsx } from 'clsx/lite';
|
||||||
import { pathForPhoto } from '@/site/paths';
|
import { pathForPhoto } from '@/site/paths';
|
||||||
|
import { SHOULD_PREFETCH } from '@/site/config';
|
||||||
|
|
||||||
export default function PhotoTiny({
|
export default function PhotoTiny({
|
||||||
photo,
|
photo,
|
||||||
tag,
|
tag,
|
||||||
selected,
|
selected,
|
||||||
className,
|
className,
|
||||||
prefetch = false,
|
prefetch = SHOULD_PREFETCH,
|
||||||
}: {
|
}: {
|
||||||
photo: Photo
|
photo: Photo
|
||||||
tag?: string
|
tag?: string
|
||||||
|
|||||||
@ -2,6 +2,8 @@ import { parseAiAutoGeneratedFieldsText } from '@/photo/ai';
|
|||||||
import type { StorageType } from '@/services/storage';
|
import type { StorageType } from '@/services/storage';
|
||||||
import { makeUrlAbsolute, shortenUrl } from '@/utility/url';
|
import { makeUrlAbsolute, shortenUrl } from '@/utility/url';
|
||||||
|
|
||||||
|
export const SHOULD_PREFETCH: boolean | undefined = undefined;
|
||||||
|
|
||||||
// META / DOMAINS
|
// META / DOMAINS
|
||||||
|
|
||||||
export const SITE_TITLE =
|
export const SITE_TITLE =
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user