fix: API_KEY is no longer required for login to work

This commit is contained in:
Aarnav Tale
2024-05-01 02:43:44 -04:00
parent a57e777a6b
commit a63f4e4d52
8 changed files with 39 additions and 18 deletions
-8
View File
@@ -33,14 +33,6 @@ export async function loader() {
throw new Error('The COOKIE_SECRET environment variable is required')
}
if (!process.env.API_KEY) {
throw new Error('The API_KEY environment variable is required')
}
if (!process.env.HEADSCALE_CONTAINER) {
throw new Error('The HEADSCALE_CONTAINER environment variable is required')
}
// eslint-disable-next-line unicorn/no-null
return null
}