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

Avoid broken LiveView when rendered app with Render deployment URL. #111

Open
zorn opened this issue Jan 1, 2025 · 0 comments
Open

Avoid broken LiveView when rendered app with Render deployment URL. #111

zorn opened this issue Jan 1, 2025 · 0 comments
Labels
good first issue Good for newcomers

Comments

@zorn
Copy link
Owner

zorn commented Jan 1, 2025

Render always will deploy to https://flick-ysjm.onrender.com/ but the app is configured using PHX_HOSTNAME that points to rankedvote.app.

host = System.get_env("PHX_HOSTNAME") || "example.com"

When you visit using the Render URL the websocket LiveView does not function as expected.

It would probably be best if we detected an attempt to load the home page with said URL and redirect to the canonical one.

@zorn zorn added the good first issue Good for newcomers label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant