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
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 5m6s
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user