Moved to a repo at https://github.com/Geczy/coolify-migration
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 { cache as reactCache } from 'react' | |
import { unstable_cache as nextCache } from 'next/cache' | |
type CacheOptions = { | |
revalidate?: number | false | |
tags?: string[] | ((...args: any[]) => string[]) | |
} | |
/** | |
* Combines React's cache (for deduping requests) with Next.js unstable_cache (for persistent caching). |
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
/** | |
* Place this to ./src/scripts/bump-payload.ts | |
* Then in your package.json add script: | |
* "bump-payload": "tsx ./src/scripts/bump-payload.ts ./package.json && pnpm i" | |
* Run `pnpm bump-payload` | |
*/ | |
import { execSync } from 'child_process'; | |
import fs from 'fs'; | |
import path from 'path'; |