Use an assetPrefix to serve all assets from same URLs (#172)

* Test an assetPrefix

* Fix condition

* Use the env instead

* Use it for CSP
This commit is contained in:
Samy Pessé
2024-02-19 16:32:33 +01:00
committed by GitHub
parent 9b285625d9
commit 6bd6ddd031
3 changed files with 17 additions and 8 deletions
+2
View File
@@ -30,6 +30,8 @@ jobs:
- name: Sets env vars for production
run: |
echo "SENTRY_ENVIRONMENT=production" >> $GITHUB_ENV
echo "GITBOOK_ASSETS_PREFIX=https://open.gitbook.com" >> $GITHUB_ENV
if: startsWith(github.ref, 'refs/tags/main')
- name: Sets env vars for preview
run: |
echo "SENTRY_ENVIRONMENT=preview" >> $GITHUB_ENV