Skip to content

Commit

Permalink
automatically confirm http-server installation
Browse files Browse the repository at this point in the history
  • Loading branch information
jkissel committed Nov 10, 2023
1 parent 0552026 commit 2a6cc5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sandbox.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ const { URL } = require('url');
const DEFAULT_CADENZA_URL = 'http://localhost:8080/cadenza';
const cadenzaUrl = new URL((process.argv[2] === '--cadenza-url' && process.argv[3]) || process.env.CADENZA_URL || DEFAULT_CADENZA_URL);

execSync(`npx http-server -a localhost -c-1 -d false --proxy ${cadenzaUrl.origin} --proxy-options.headers.Origin ${cadenzaUrl.origin} -o /sandbox.html${cadenzaUrl.pathname !== '/' ? `?contextPath=${cadenzaUrl.pathname}` : ''}`, { stdio: 'inherit' });
execSync(`npx --yes http-server -a localhost -c-1 -d false --proxy ${cadenzaUrl.origin} --proxy-options.headers.Origin ${cadenzaUrl.origin} -o /sandbox.html${cadenzaUrl.pathname !== '/' ? `?contextPath=${cadenzaUrl.pathname}` : ''}`, { stdio: 'inherit' });

0 comments on commit 2a6cc5b

Please sign in to comment.