This commit is contained in:
pablodanswer
2024-12-11 15:34:26 -08:00
parent 1b846fbf06
commit 0b5013b47d

View File

@@ -63,6 +63,8 @@ export async function OPTIONS(
async function handleRequest(request: NextRequest, path: string[]) {
if (
process.env.NODE_ENV === "production" &&
// 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(