I am wonfident this will work
This commit is contained in:
@ -9,6 +9,9 @@ export const POST: APIRoute = async ({ request }) => {
|
||||
const { code } = await request.json();
|
||||
const secretCode = process.env.SECRET_CODE || import.meta.env.SECRET_CODE;
|
||||
|
||||
console.log("Received code:", code); // For debugging
|
||||
console.log("Secret code:", secretCode); // For debugging
|
||||
|
||||
if (!code || code !== secretCode) {
|
||||
return new Response(
|
||||
JSON.stringify({
|
||||
|
Reference in New Issue
Block a user