diff --git a/waspc/packages/deploy/src/providers/fly/deploy/deploy.ts b/waspc/packages/deploy/src/providers/fly/deploy/deploy.ts index ea1891d3f0..05128323b2 100644 --- a/waspc/packages/deploy/src/providers/fly/deploy/deploy.ts +++ b/waspc/packages/deploy/src/providers/fly/deploy/deploy.ts @@ -23,7 +23,7 @@ import { DeployOptions } from './DeployOptions.js'; import { createDeploymentInfo, DeploymentInfo } from '../DeploymentInfo.js'; import { flySetupCommand } from '../index.js'; import { secretExists } from '../helpers/flyctlHelpers.js'; -// import { stripTrailingSlash } from "wasp/universal/url"; +import { stripTrailingSlash } from "wasp/universal/url"; export async function deploy(options: DeployOptions): Promise { waspSays('Deploying your Wasp app to Fly.io!'); @@ -104,11 +104,11 @@ async function deployClient(deploymentInfo: DeploymentInfo, { 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, please 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 = stripTrailingSlash(process.env.REACT_APP_API_URL) || deploymentInfo.serverUrl; await $`npm install`; - // await $`REACT_APP_API_URL=${serverUrl} npm run build`; + await $`REACT_APP_API_URL=${serverUrl} npm run build`; // Creates the necessary Dockerfile for deploying static websites to Fly.io. // Adds dummy .dockerignore to supress CLI question.