How can a FastHTML web site be deployed with a custom domain? The available instructions only offer a solution for using YOURUSERNAME.pythonanywhere.com for domain.
How can a FastHTML web site be deployed with a custom domain? The available instructions only offer a solution for using YOURUSERNAME.pythonanywhere.com for domain.
You can. Just point your domian's cname to whatever.pythonanywhere.com
Our backend should route to your web app correctly.
Thank you for the suggestion. Both of these methods have been tried and were unsuccessful:
Method 1: Create a web app with a custom domain. The result is that the contents of the WSGI file is shown instead of the main.py for the fasthtml app.
Method 2: As suggested above, follow the beta instructions for fasthtml app and point the CNAME record to YOURUSERNAME.pythonanywhere.com. This results in the pythonanywhere coming soon page being displayed when navigating to the custom domain. However, the correct page is displayed when navigating to YOURUSERNAME.pythonanywhere.com. Have given DNS ample time to update and have cleared browser cache.
BTW: Have a paid account with custom domain feature.
Follow the beta instructions but use your custom domain as domain name, not sandboxba.pythonanywhere.com. Keep the CNAME like you created it,
That worked, thank you.
What is the solution for adding a cert for HTTPS? If there is no current solution, what is the plan for making a solution available for FastHTML sites?
It's not easily accessible yet, but I set it for your domain now.
Thanks again. I can confirm that https is now active for the site.
⭐️⭐️⭐️⭐️⭐️ 5 stars on the help!
Thanks for confirming that!