I’ve tried to figure this out for a few hours now - I am importing a project that uses clerk as its auth method, but I can’t access any previews because it gives me: ****.clerk.accounts.dev refused to connect. Is this something that can’t be worked around because of how the webcontainer works?
Hey @Sevadus,
I dont know clerk, but just signed up, got an api key and let bolt implement a demo page.
As far as I see it works, but you have to tell me what I need to test:
Sorry I should have been more specific - I’m running an NextJS 15 app with app router, and I suspect that might have something to do with it. Maybe a limitation with the server-side code that WebContainers can handle. With <ClerkProvider>
around the entire app.
Thanks,
I could reproduce it now and get the same error. Seems a problem with the webcontainer.
If someone else wants to rebuild it, use a prompt like this (Gemini 2.0 Flash):
Implement a demo application using clerk auth
use NextJS 15 app with app router and use <ClerkProvider>
(you need the api keys for clerk)