Skip to content
Snippets Groups Projects
Commit 7ac808da authored by Lars Bilke's avatar Lars Bilke Committed by Lars Bilke
Browse files

[web] Canonify Urls on Jenkins.

parent 7eb349df
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,10 @@ if(DEFINED OGS_WEB_BASE_URL)
set(HUGO_ARGS --baseURL ${OGS_WEB_BASE_URL})
endif()
if(DEFINED ENV{JENKINS_URL})
set(HUGO_ARGS ${HUGO_ARGS} --canonifyURLs)
endif()
add_custom_target(web
COMMAND ${NPM} run build -- ${HUGO_ARGS}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/web
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment