1
0
forked from github/onyx

Compare commits

...

1 Commits

Author SHA1 Message Date
pablodanswer
e62d334e7b update conditional 2024-12-12 08:19:44 -08:00

View File

@@ -61,7 +61,12 @@ export async function OPTIONS(
}
async function handleRequest(request: NextRequest, path: string[]) {
if (process.env.NODE_ENV !== "development") {
if (
process.env.NODE_ENV !== "development" &&
// NOTE: Set this environment variable to 'true' for preview environments
// Where you want finer-grained control over API access
process.env.OVERRIDE_API_PRODUCTION !== "true"
) {
return NextResponse.json(
{
message: