Skip to content

Commit

Permalink
serve dist should always serve https after change to js load in backe…
Browse files Browse the repository at this point in the history
…nd (#5080)
  • Loading branch information
alisman authored Jan 8, 2025
1 parent 6376681 commit 1df324a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions end-to-end-test/local/runtime-config/serve_dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ set -e
set -u # unset variables throw error
set -o pipefail # pipes fail when partial command fails

(echo $CBIOPORTAL_URL | grep -q https) \
&& ( \
openssl \
req -newkey rsa:2048 -new -nodes -x509 -days 1 -keyout key.pem -out cert.pem \
-subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=localhost" && \
./node_modules/http-server/bin/http-server -S -C cert.pem --cors dist/ -p 3000 \
) || ./node_modules/http-server/bin/http-server --cors dist/ -p 3000

openssl \
req -newkey rsa:2048 -new -nodes -x509 -days 1 -keyout key.pem -out cert.pem \
-subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=localhost" && \
./node_modules/http-server/bin/http-server -S -C cert.pem --cors dist/ -p 3000 \

0 comments on commit 1df324a

Please sign in to comment.