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
{{ message }}
Repository navigation
[Hinode] Set a baseURL when deploying PR previews #416
The --baseURL arg can be passed when calling hugo to build the site to override the base URL set in config/_default/hugo.toml. This is particularly useful when previewing changes in PRs because various links in the preview will link to the preview build instead of the main site.
There's a CF_PAGES_URL environment variable we should be able to reference when building the preview site:
I'm going to experiment with this as preview builds have a different configuration section in Cloudflare, so it shouldn't impact production deployments.
https://aa1c6407.passkeys-dev.pages.dev/ was the first PR preview build (see #387) with this change made. Clicking around no longer takes me to passkeys.dev sometimes so I'm considering this done.
Activity
MasterKale commentedon Jan 2, 2025
I tweaked the Preview build process accordingly:
https://aa1c6407.passkeys-dev.pages.dev/ was the first PR preview build (see #387) with this change made. Clicking around no longer takes me to passkeys.dev sometimes so I'm considering this done.