Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Can't set client environment when deploying to Fly.io - Wasp
W
Wasp
•
2y ago
•
11 replies
Ron
Can't set client environment when deploying to Fly.io
I
've followed the docs
https://wasp-lang.dev/docs/advanced/deployment/cli#client
to set the client environment variable when deploying to fly
.io
I run REACT
_APP
_API
_URL
=
https://api.myapp.com
wasp deploy fly deploy
But when it finished deploying to server and starts to deploy to client
, it still execute below command
Deploying your client now
.
.
.
$ cd
/Users
/xxxx
/xxxx
/app
/
.wasp
/build
/web
-app
Building web client for production
.
.
.
$ npm install
up to date
, audited 146 packages in 986ms
19 packages are looking for funding
run
npm fund
npm fund
for details
found 0 vulnerabilities
$ REACT
_APP
_API
_URL
=
https://myproject-server.fly.dev
npm run build
And eventually the REACT
_APP
_API
_URL did changed to
https://myproject-server.fly.dev
instead of my intended value
, any clues how to fix this
? Appreciate your help
!
Wasp
Join
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.
4,650
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Fly.io stopped deploying
W
Wasp / 🙋questions
13mo ago
Deploying on fly.io
W
Wasp / 🙋questions
2y ago
npm build error when deploying to fly.io
W
Wasp / 🙋questions
13mo ago
npm build error when deploying to fly.io
W
Wasp / 🙋questions
13mo ago