Secured mutations with an api-key. When in production mode it should return null if an API key is not provided or is incorrect.
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 5m6s

This commit is contained in:
2025-12-10 16:42:21 -05:00
parent 678d1e7b5e
commit 30b4f65ec6
3 changed files with 156 additions and 78 deletions

View File

@@ -8,8 +8,6 @@ interface NextContext {
params: Promise<Record<string, string>>;
}
console.log(process.env);
const environment = process.env.NODE_ENV || "development";
const isValidApiKey = (apiKey: string): boolean => {