Currently my cicd workflow is to deploy on fly.io through gh actions and it works well. Now, I want to proxy both my frontend and my backend behind Cloudflare.
It's done for frontend, no problem. I have some issues to proxy my backend API because I can't find an explicit reference of backend url on client app side, even in secrets.
Thus, I suppose its done at build time but I dont know where and when to set it. I also suppose its same as WASP_SERVER_URL env var but I need to inform my frontend of this custom endpoint. Is it "hardcoded" by constructing url from app name with https://{app-name}.fly.dev or something like that ?
Note that I have different environments so that my fly toml config files are generated at build time depending on the git branch I'm working on.
Thanks !
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
W
Wasp
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.