Files
reflector/www/app/lib/next.ts
Igor Loskutov 40fe4c1bc7 redis cache
2025-09-04 10:41:31 -04:00

3 lines
220 B
TypeScript

// next.js tries to run all the lib code during build phase; we don't always want it when e.g. we have connections initialized we don't want to have
export const isBuildPhase = process.env.NEXT_PHASE?.includes("build");