Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Mihovil Ilakovac <[email protected]>
  • Loading branch information
Case-E and infomiho authored Aug 19, 2024
1 parent 632b7f2 commit 4bffcef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions waspc/packages/deploy/src/providers/fly/deploy/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,11 @@ async function deployClient(deploymentInfo: DeploymentInfo<DeployOptions>, { bui
copyProjectClientTomlLocally(deploymentInfo.tomlFilePaths);

waspSays('Building web client for production...');
waspSays('If you configured a custom domain for the server, please run the command with an env variable: REACT_APP_API_URL=https://serverUrl.com wasp deploy fly deploy');
waspSays('If you configured a custom domain for the server, you should run the command with an env variable: REACT_APP_API_URL=https://serverUrl.com wasp deploy fly deploy');

const serverUrl = stripTrailingSlash(process.env.REACT_APP_API_URL ?? '') || deploymentInfo.serverUrl;
const serverUrl = process.env.REACT_APP_API_URL
? stripTrailingSlash(process.env.REACT_APP_API_URL)
: deploymentInfo.serverUrl;
await $`npm install`;
await $`REACT_APP_API_URL=${serverUrl} npm run build`;

Expand Down

0 comments on commit 4bffcef

Please sign in to comment.