You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this could be fixed on the cf pages panel to use ENV vars instead of hardcoding the domain in the config
Example hugo -b $CF_PAGES_URL --minify --gc --environment $VAR_DEPLOY_MODE
something like -b $CF_PAGES_URL will allow cf to dynamically tell hugo what the site url actually is, this is needed for CROS, scripts and resources to work properly(so it will load from the respective dev branch)
we could set the production variable of $CF_PAGES_URL to be hardecoded to our main domain, and blank prefill for dev env
This issue is currently blocking proper deploy flow(having a staging env and a protected main branch where everything has to be added via PR)
currently cf deploy action's preview URL is broken. Example: https://1ada3338.vaccinator-wiki.pages.dev/ from /runs
this could be fixed on the cf pages panel to use ENV vars instead of hardcoding the domain in the config
Example
hugo -b $CF_PAGES_URL --minify --gc --environment $VAR_DEPLOY_MODE
something like
-b $CF_PAGES_URL
will allow cf to dynamically tell hugo what the site url actually is, this is needed for CROS, scripts and resources to work properly(so it will load from the respective dev branch)we could set the production variable of
$CF_PAGES_URL
to be hardecoded to our main domain, and blank prefill for dev envThis issue is currently blocking proper deploy flow(having a staging env and a protected main branch where everything has to be added via PR)
nice to have that needs thinkering: visiting our root https://vaccinator-wiki.pages.dev should redirect to https://wiki.vaccinator.tech/ (realistically we wont be using that link so it's not a priority)
The text was updated successfully, but these errors were encountered: