We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ed6f90 commit 35d905cCopy full SHA for 35d905c
1 file changed
src/server-v1.ts
@@ -921,10 +921,11 @@ export function createV1Server() {
921
try {
922
const { name, arguments: args } = request.params;
923
924
- const apiKey = process.env.CLOUD_SERVICE
925
- ? (request.params._meta?.apiKey as string)
926
- : FIRECRAWL_API_KEY;
927
- if (process.env.CLOUD_SERVICE && !apiKey) {
+ const apiKey =
+ process.env.CLOUD_SERVICE === 'true'
+ ? (request.params._meta?.apiKey as string)
+ : FIRECRAWL_API_KEY;
928
+ if (process.env.CLOUD_SERVICE === 'true' && !apiKey) {
929
throw new Error('No API key provided');
930
}
931
0 commit comments