You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried opening and starting the project in a codespace e. g. for code review.
I couldn't fully get it to work, but almost - here are some things I found.
It's all mostly related to how gh forwards ports as urls without a port
set WDS_SOCKET_PORT=0 for react-scripts start because the dev-live-update-server port isn't 3000 after the gh port forwarding
the URLs in .env.development need to be changed to the appropriate forwarded urls
these are generated in the formathttps://CODESPACENAME-PORT.app.github.dev, CODESPACE_NAME is an enviroment variable
I'm currently hitting a wall with the backend server:
For cookies and redirects, the backend is using the r.Host() which is localhost:3000 but when the client needs to request something, the request must go to https://CODESPACENAME-8080.app.github.dev.
could we maybe add an option either as cli parameter or enviroment variable to overwrite the host on the backend?
also let me know if there is anyting else you'd like to have in the codespace besides go and node runtimes.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've tried opening and starting the project in a codespace e. g. for code review.
I couldn't fully get it to work, but almost - here are some things I found.
It's all mostly related to how gh forwards ports as urls without a port
WDS_SOCKET_PORT=0
forreact-scripts start
because the dev-live-update-server port isn't 3000 after the gh port forwarding.env.development
need to be changed to the appropriate forwarded urlshttps://CODESPACENAME-PORT.app.github.dev
,CODESPACE_NAME
is an enviroment variableI'm currently hitting a wall with the backend server:
For cookies and redirects, the backend is using the
r.Host()
which islocalhost:3000
but when the client needs to request something, the request must go tohttps://CODESPACENAME-8080.app.github.dev
.could we maybe add an option either as cli parameter or enviroment variable to overwrite the host on the backend?
also let me know if there is anyting else you'd like to have in the codespace besides go and node runtimes.
Beta Was this translation helpful? Give feedback.
All reactions