11 lines
333 B
TypeScript
11 lines
333 B
TypeScript
/**
|
|
* Local dev: treat the app as signed-in for data fetching when bypass is on.
|
|
* Server: lib/auth/session-server.ts must use the same env flag.
|
|
*/
|
|
export function isClientDevProjectBypass(): boolean {
|
|
return (
|
|
process.env.NODE_ENV === "development" &&
|
|
process.env.NEXT_PUBLIC_DEV_BYPASS_PROJECT_AUTH === "true"
|
|
);
|
|
}
|