diff --git a/waspc/packages/deploy/src/providers/fly/deploy/deploy.ts b/waspc/packages/deploy/src/providers/fly/deploy/deploy.ts index 05128323b2..609e73b45d 100644 --- a/waspc/packages/deploy/src/providers/fly/deploy/deploy.ts +++ b/waspc/packages/deploy/src/providers/fly/deploy/deploy.ts @@ -23,7 +23,6 @@ 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"; export async function deploy(options: DeployOptions): Promise { waspSays('Deploying your Wasp app to Fly.io!'); @@ -106,7 +105,7 @@ async function deployClient(deploymentInfo: DeploymentInfo, { bui 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'); - const serverUrl = stripTrailingSlash(process.env.REACT_APP_API_URL) || deploymentInfo.serverUrl; + const serverUrl = process.env.REACT_APP_API_URL || deploymentInfo.serverUrl; await $`npm install`; await $`REACT_APP_API_URL=${serverUrl} npm run build`;