Skip to content

Commit

Permalink
refactor: remove variable BUILD_COMMAND
Browse files Browse the repository at this point in the history
  • Loading branch information
Platonn committed Oct 4, 2024
1 parent 5605f5f commit 602eb13
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions projects/ssr-tests/validate-ssr-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,12 @@ const SSR_APP_PATH = path.join(
);

/**
* The command to build the SSR app with a local backend proxy.
*/
const BUILD_COMMAND = '> npm run build && npm run build:ssr:local-http-backend';

/**
* Advice to the user on how to build the SSR app with a local backend proxy.
* Advice to the user on how to build the SSR app in prod mode to use a local backend proxy.
*/
const BUILD_COMMAND_ADVICE =
colorToYellow(`Please build the SSR app with the following command:
${BUILD_COMMAND}
`);
> npm run build && npm run build:ssr:local-http-backend`);

export default async function validateSsrBuild() {
if (!fs.existsSync(SSR_APP_PATH)) {
Expand Down

0 comments on commit 602eb13

Please sign in to comment.