onlook
onlook copied to clipboard
fix: freestyle initialization in local developement
Description
This PR introduces a small fix for freestyle SDK initialization when no freestyle key is present in local development.
Related Issues
Type of Change
- [x] Bug fix
- [ ] New feature
- [ ] Documentation update
- [ ] Release
- [ ] Refactor
- [ ] Other (please describe):
Testing
Screenshots (if applicable)
Additional Notes
[!IMPORTANT] Fixes Freestyle SDK initialization in
domain.tsby checking forFREESTYLE_API_KEYand throwing an error if missing.
- Behavior:
- Introduces
initializeSdk()indomain.tsto check forFREESTYLE_API_KEYbefore initializingFreestyleSandboxes.- Throws
TRPCErrorwith codePRECONDITION_FAILEDifFREESTYLE_API_KEYis missing.- Error Handling:
- Ensures domain publishing features are only available when
FREESTYLE_API_KEYis configured.This description was created by
for 2237a3c3cf0b3a4af8bdd8000f543ab1bb7afdb6. You can customize this summary. It will automatically update as commits are pushed.
@iNerdStack is attempting to deploy a commit to the Onlook Team on Vercel.
A member of the Team first needs to authorize it.