Skip to content

Commit

Permalink
update PREVIEW_DEPLOYMENT_DOMAIN env in sanity
Browse files Browse the repository at this point in the history
  • Loading branch information
milewskibogumil committed Sep 25, 2024
1 parent d830704 commit 9fd2d29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/sanity-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,21 @@ on:
push:
branches: [main]
paths:
- "apps/sanity/**"
- 'apps/sanity/**'
jobs:
deploy:
name: Build and Deploy
runs-on: ubuntu-latest
env:
SANITY_AUTH_TOKEN: ${{ secrets.SANITY_DEPLOY_STUDIO_TOKEN }}
SANITY_STUDIO_PREVIEW_DOMAIN: ${{ secrets.SANITY_STUDIO_PREVIEW_DOMAIN }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: actions/setup-node@v2
with:
node-version: "18.x"
node-version: '18.x'
- uses: oven-sh/setup-bun@v2
- name: Deploy Sanity Studio
run: |
Expand Down
3 changes: 2 additions & 1 deletion apps/sanity/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ export const DOMAIN: string = "https://kryptonum.eu";
* @constant
* @type {string}
*/
export const PREVIEW_DEPLOYMENT_DOMAIN: string = import.meta.env.SANITY_STUDIO_PREVIEW_DOMAIN;
export const PREVIEW_DEPLOYMENT_DOMAIN: string = process.env.SANITY_STUDIO_PREVIEW_DOMAIN ?? "";

0 comments on commit 9fd2d29

Please sign in to comment.