Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External Port Issue & Workaround #2

Open
vincanger opened this issue Jan 20, 2023 · 0 comments
Open

External Port Issue & Workaround #2

vincanger opened this issue Jan 20, 2023 · 0 comments

Comments

@vincanger
Copy link
Collaborator

Describe the bug
When using Wasp on Replit (https://replit.com/@vincanger/wasp-replit-template#.replit), we have to expose the client and server running on ports 3000 and 3001, to external ports so that Replit can host the app correctly. The default behavior is that anything exposed on localhost:3000 will be exposed externally at the default Replit url for that project. In this case, it is https://wasp-replit-template.vincanger.repl.co

image

Unfortunately, when the client running on localhost:3000 gets exposed at the default url and the server exposed externally at port 8099, the client often becomes unreachable after some time (see image above). This seems to be a bug on Replit's side, but we can work around it by exposing the client at an external port (e.g. 9000), and informing users to access their apps at this url, e.g. https://wasp-replit-template.vincanger.repl.co:9000

image

all the relevant files and config can be found here: https://github.com/wasp-lang/replit-template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant