Lets the test build present itself under its own address
VITE_SITE_URL sets the origin used for canonical, og:url, og:image, JSON-LD and the sitemap. Only the test build sets it (https://test.andreaslop.nl); the production artifact keeps https://andreaslop.nl. Only a clean https origin (or http on localhost) is accepted, anything else falls back to production. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -149,6 +149,12 @@ jobs:
|
||||
env:
|
||||
VITE_RELEASE: ${{ github.sha }}
|
||||
OFFERINGS_URL: ${{ vars.ASF_OFFERINGS_URL_TEST }}
|
||||
# De testsite staat op zichzelf: canonical, og:url, og:image,
|
||||
# JSON-LD en sitemap wijzen naar het eigen adres, zodat een gedeelde
|
||||
# link (WhatsApp, Discord) ook zijn eigen plaatje toont. Alleen in
|
||||
# deze testbuild; het productie-artefact (job check) krijgt de
|
||||
# variabele niet en houdt https://andreaslop.nl.
|
||||
VITE_SITE_URL: https://test.andreaslop.nl
|
||||
|
||||
- name: Upload build artifact (test)
|
||||
uses: actions/upload-artifact@v3
|
||||
|
||||
Reference in New Issue
Block a user