Make the SPA detection even simpler.
Some checks failed
Lint Checks / Run linter (pull_request) Successful in 34s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m58s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Has been cancelled
Webapp Test / Run webapp test suite (pull_request) Has been cancelled
Smoke Test / Run basic test suite (pull_request) Has been cancelled
Some checks failed
Lint Checks / Run linter (pull_request) Successful in 34s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m58s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Has been cancelled
Webapp Test / Run webapp test suite (pull_request) Has been cancelled
Smoke Test / Run basic test suite (pull_request) Has been cancelled
This commit is contained in:
parent
ca81d3e726
commit
e68670023a
@ -9,7 +9,7 @@ CERC_ENABLE_CORS="${CERC_ENABLE_CORS:-false}"
|
|||||||
CERC_SINGLE_PAGE_APP="${CERC_SINGLE_PAGE_APP}"
|
CERC_SINGLE_PAGE_APP="${CERC_SINGLE_PAGE_APP}"
|
||||||
|
|
||||||
if [ -z "${CERC_SINGLE_PAGE_APP}" ] && [ 1 -eq $(find "${CERC_WEBAPP_FILES_DIR}" -name '*.html' | wc -l) ]; then
|
if [ -z "${CERC_SINGLE_PAGE_APP}" ] && [ 1 -eq $(find "${CERC_WEBAPP_FILES_DIR}" -name '*.html' | wc -l) ]; then
|
||||||
# If there
|
# If there only one HTML file, we assume an SPA.
|
||||||
CERC_SINGLE_PAGE_APP=true
|
CERC_SINGLE_PAGE_APP=true
|
||||||
else
|
else
|
||||||
CERC_SINGLE_PAGE_APP=false
|
CERC_SINGLE_PAGE_APP=false
|
||||||
|
Loading…
Reference in New Issue
Block a user