N
Novu•7mo ago
PIat

Skeleton in editor

Hello! I am selfhosing the provided v2 Docker Compose on a custom server with subdomains. When I try to go to the Studio, I am met with a blank page. Same goes for the playground, since it's trying to connect to localhost:2022/studio, but is running on a remote Docker container.
No description
No description
15 Replies
PIat
PIatOP•7mo ago
The Studio Network tab is pretty lackluster and no errors are shown
No description
PIat
PIatOP•7mo ago
How can I use Studio and Playground with a remote server? Any help is appreciated!
Pawan Jain
Pawan Jain•7mo ago
@PIat Could you please check the console tab? Do you see any error there? In case you are using other browsers, studio can only be used in chrome browser
PIat
PIatOP•7mo ago
Hello! I am using Chrome and the Console is also empty
Novu_Bot
Novu_Bot•7mo ago
@PIat, you just advanced to level 1!
Pawan Jain
Pawan Jain•7mo ago
Can you share the command you used to start local studio?
PIat
PIatOP•7mo ago
I've shared it in the DMs!
Pawan Jain
Pawan Jain•7mo ago
@PIat Thanks for sharing the command. It looks correct to me Make sure you have these .env variables in bridge application
NOVU_SECRET_KEY="SECRET_KEY_FROM_SELF_HOST_ENVIRONMENT"
NOVU_API_URL="SELF_HOST_API_BASE_URL"
NOVU_SECRET_KEY="SECRET_KEY_FROM_SELF_HOST_ENVIRONMENT"
NOVU_API_URL="SELF_HOST_API_BASE_URL"
PIat
PIatOP•7mo ago
Ohhhh, and should I start the Studio from the folder when the .env file is located?
Pawan Jain
Pawan Jain•7mo ago
you can use npx novu@latest dev command in any terminal but application should have these env values loaded
PIat
PIatOP•7mo ago
Now it works 🫠
Pawan Jain
Pawan Jain•7mo ago
Glad it worked
PIat
PIatOP•7mo ago
Thank you so so much I didn't know the CLI also needed those environment variables The playground still doesn't connect to localhost:2022, but I'll just run the tests from the IDE Novu Studio works as expected, but playground on the hosted instance does not Since localhost:2022 is something different on the VPS
Pawan Jain
Pawan Jain•7mo ago
ohh yes playground will not work on self hosted version I will share the feedback with team to turn this off in self host environment
PIat
PIatOP•7mo ago
Amazing, thank you so much

Did you find this page helpful?