workspace for developing react
I have a self hosted coder instance running on my personal server that I access from behind a wireguard vpn. the source code for my workspace is this:
when I run the react app using the “npm run dev” command, coder opens another tab that gives me a “bad 502 gateway” error. how can I troubleshoot this?
5 Replies
Category: Help needed
What product are you using?
Not seeing your workspace code, but I have gotten a Node dev server to run in my workspace using vscode-web and accessing the port through the Coder workspace dashboard. I run it through the terminal of the workspace container, so I believe it should work with any type of workspace container. Where are you running the dev server?
the code is this :
dockerfile:
main.tf:
my overlay network is netbird which is a wireguard based vpn for self hosting
Have you tried installing NPM/Node in your container and running the dev server? After you get the server running, you might be able to access the port through the Coder port forwarding in the container dashboard.