-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Labels
Description
Describe the feature request
I want to use unleash together with Gitlab Feature Flags (in a Vue Nuxt.js application). Therefore i created a serverside endpoint in our nuxt app (nuxt runs a nitro server) that uses unleash-client
. Everything works flawlessly local.
When I try to deploy it to our Cloudflare pages, the deployment fails with:
Error: Failed to publish your Function. Got error: Uncaught TypeError: Class extends value #<Object> is not a constructor or null
at chunks/nitro/nitro.mjs:1:222837
I think the reason is that Cloudflare workers run on V8 and not Node.js. Apparently unleash-client relies on some node API's that V8 does not provide and therefore it doesn't work.
Ofc this is not a bug from your side, but I wonder if there is a way to polyfill/fix this or is there another unleash approach to cloudflare?
Or is it impossible to use Unleash together with Cloudflare?
Background
No response
Solution suggestions
No response
MrCoder and R3VoLuT1OneRBergrebell
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
For later