Skip to content

Commit

Permalink
removing the stripTrailingSlash fn
Browse files Browse the repository at this point in the history
  • Loading branch information
Case-E committed Aug 12, 2024
1 parent 1d61f08 commit bf982bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions waspc/packages/deploy/src/providers/fly/deploy/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {
waspSays('Deploying your Wasp app to Fly.io!');
Expand Down Expand Up @@ -106,7 +105,7 @@ async function deployClient(deploymentInfo: DeploymentInfo<DeployOptions>, { 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`;

Expand Down

0 comments on commit bf982bd

Please sign in to comment.