This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use server' | |
import { | |
PAYLOAD_TOKEN_COOKIE_NAME, | |
AUTH_JS_COOKIE_NAME, | |
AUTH_JS_SECURE_COOKIE_NAME, | |
BETTER_AUTH_SESSION_COOKIE_NAME, | |
BETTER_AUTH_SESSION_COOKIE_NAME_SECURE, | |
BETTER_AUTH_SESSION_DATA_COOKIE_NAME, | |
BETTER_AUTH_SESSION_DATA_COOKIE_NAME_SECURE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { CollectionSlug } from 'payload' | |
export const PATH_UNIQUE_AGINST_COLLECTIONS = ['pages', 'posts'] as const satisfies CollectionSlug[] | |
export const FIELD_TO_USE_FOR_PATH = 'slug' as const |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createHash } from 'crypto' | |
import fs from 'fs/promises' | |
import { createWriteStream } from 'fs' | |
import path from 'path' | |
import { Readable } from 'stream' | |
import { finished } from 'stream/promises' | |
import { glob } from 'glob' | |
const CACHE_DIR = path.join(process.cwd(), '.next/cache/custom') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use client' | |
import 'swiper/css' | |
import 'swiper/css/navigation' | |
import { useRef, useState, useEffect, type ReactNode, type CSSProperties } from 'react' | |
import { Navigation } from 'swiper/modules' | |
import type { Swiper as SwiperType, SwiperOptions } from 'swiper/types' | |
import ChevronLeftIcon from '@public/icons/chevron-left.svg' | |
import ChevronRightIcon from '@public/icons/chevron-right.svg' | |
import clsx from 'clsx' |