mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user