You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the FREESTYLE_API_KEY environment variable is marked as optional in the schema (z.string().optional()), but it's still being used to instantiate FreestyleSandboxes in the domain router.
The issue is that if the env variable is missing or undefined, it ends up trying to create the SDK with undefined as the API key. That probably causes the constructor to throw, which then crashes the dev server and since it's in the startup path, it just keeps restarting in an infinite loop.
We’ll either need to make the env var required or add a proper check before initializing the SDK.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I noticed that the FREESTYLE_API_KEY environment variable is marked as optional in the schema
(z.string().optional())
, but it's still being used to instantiate FreestyleSandboxes in the domain router.The issue is that if the env variable is missing or undefined, it ends up trying to create the SDK with undefined as the API key. That probably causes the constructor to throw, which then crashes the dev server and since it's in the startup path, it just keeps restarting in an infinite loop.
We’ll either need to make the env var required or add a proper check before initializing the SDK.
The text was updated successfully, but these errors were encountered: