This commit is contained in:
@@ -11,6 +11,7 @@ interface NextContext {
|
||||
const environment = process.env.NODE_ENV || "development";
|
||||
|
||||
const isValidApiKey = (apiKey: string): boolean => {
|
||||
console.log(process.env);
|
||||
const envApiKey = process.env.NEXT_PUBLIC_API_TOKEN;
|
||||
|
||||
return apiKey === envApiKey;
|
||||
|
||||
Reference in New Issue
Block a user