Make the SPA detection even simpler. #830

Merged
telackey merged 2 commits from telackey/spa4 into main 2024-05-22 18:31:58 +00:00
Showing only changes of commit e68670023a - Show all commits

View File

@ -9,7 +9,7 @@ CERC_ENABLE_CORS="${CERC_ENABLE_CORS:-false}"
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 there
# If there only one HTML file, we assume an SPA.
CERC_SINGLE_PAGE_APP=true
else
CERC_SINGLE_PAGE_APP=false