Confirmed to work on Payload 1.0, not yet tested 2.0.
// payload.config.ts
plugins: [
cloudStorage({
import { | |
copyFile, | |
readFile, | |
readdir, | |
unlink, | |
writeFile, | |
} from "node:fs/promises"; | |
import { basename } from "node:path"; | |
const CJS_DIR = new URL("./dist/cjs", import.meta.url).pathname; |
import { z } from "zod"; | |
const schema = z.object({ | |
date: z.date(), | |
}); | |
const postCollection = { | |
type: "content", | |
schema: schema, | |
orderBy: [(s: z.infer<typeof schema>) => s.date, "DESC"], |
--- | |
import type { ImageMetadata, ImageTransform } from "astro"; | |
import { getImage } from "astro:assets"; | |
import LoadableImage from "./LoadableImage.astro"; | |
type Props = { | |
src: ImageMetadata; | |
alt: string; | |
/** | |
* Array of screens to generate the image for i.e [320, 480, 1200] |
Build ready to start ▶️ | |
>> Cloning github.com/sannajammeh/chew-mono-final.git branch expo-49 into /workspace | |
Cloning into '/workspace/tmp2340191412'... | |
>> Moving content of subdirectory ./ to /workspace | |
Restoring data for SBOM from previous image | |
4 of 5 buildpacks participating | |
koyeb/build-command-nodejs 0.1.0 | |
heroku/nodejs-engine 0.8.24 | |
heroku/nodejs-corepack 0.1.2 | |
heroku/nodejs-pnpm-install 0.1.1 |
import type { DecodedIdToken } from 'firebase-admin/lib/auth/token-verifier'; | |
import * as jose from 'jose'; | |
type JWKS = Record<string, string>; | |
interface JWTHeader { | |
kid: string; | |
alg: 'RS256'; | |
typ: 'JWT'; | |
} |
import dynamic from "next/dynamic"; | |
import Head from "next/head"; | |
import React, { Suspense, useEffect, useRef, useState } from "react"; | |
const HLSPlayer = dynamic(() => import("@components/HLSPlayer"), { | |
suspense: true, | |
}); | |
const Parent = () => { | |
const [video, setVideo] = useState<HTMLVideoElement | null>(null); // use callback state instead of ref due to hydration of SSR stream |
I intend to make this class more modular, abstracting into helper functions and allowing for passing in elements.
A deleted commit from the node-ipc repository. You can find the original commit here: https://github.com/RIAEvangelist/node-ipc/blob/847047cf7f81ab08352038b2204f0e7633449580/dao/ssl-geospec.js
WARNING: THIS IS LIVE MALWARE. RUN IT AT YOUR OWN RISK.
const beginFloat = "~begin~float~"; | |
const endFloat = "~end~float~"; | |
type Config = Record<string, "float">; | |
export const stringifyWithFloats = | |
(config: Config = {}, decimals = 2) => | |
( | |
inputValue: Record<string, any>, | |
inputReplacer?: (this: any, key: string, value: any) => any, |