Skip to content

Commit

Permalink
ci: add nuxt studio env at build time
Browse files Browse the repository at this point in the history
  • Loading branch information
stafyniaksacha committed Nov 30, 2023
1 parent e7fb4b3 commit f4570cd
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 14 deletions.
5 changes: 1 addition & 4 deletions .blog/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,10 @@ export default defineNuxtConfig({
siteDescription: '',
language: 'en-US',
titleSeparator: '·',
studio: {
tokens: '',
},
},
},

experimental: {
viewTransition: true,
}
},
})
3 changes: 0 additions & 3 deletions .cooking/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ export default defineNuxtConfig({
siteDescription: '',
language: 'en-US',
titleSeparator: '·',
studio: {
tokens: '',
},
},
},
})
1 change: 0 additions & 1 deletion .github/env/demo-blog/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ services:
- cssninja-services
environment:
- NUXT_PUBLIC_FRONTEND_URL=https://stylo.${HOST:-127.0.0.1.nip.io}/
- NUXT_PUBLIC_STUDIO_TOKENS=${STUDIO_TOKENS}
labels:
traefik.enable: true
traefik.docker.network: 'cssninja-services'
Expand Down
1 change: 0 additions & 1 deletion .github/env/demo-cooking/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ services:
- cssninja-services
environment:
- NUXT_PUBLIC_FRONTEND_URL=https://stylo-cooking.${HOST:-127.0.0.1.nip.io}/
- NUXT_PUBLIC_STUDIO_TOKENS=${STUDIO_TOKENS}
labels:
traefik.enable: true
traefik.docker.network: 'cssninja-services'
Expand Down
1 change: 0 additions & 1 deletion .github/env/demo-starter/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ services:
- cssninja-services
environment:
- NUXT_PUBLIC_FRONTEND_URL=https://stylo-starter.${HOST:-127.0.0.1.nip.io}/
- NUXT_PUBLIC_STUDIO_TOKENS=${STUDIO_TOKENS}
labels:
traefik.enable: true
traefik.docker.network: 'cssninja-services'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- run: corepack enable
- run: pnpm install --frozen-lockfile
- run: echo '{"extends":"./.blog/.nuxt/tsconfig.json"}' > tsconfig.json
- run: pnpm build
- run: NUXT_PUBLIC_STUDIO_TOKENS=${{ secrets.BLOG_STUDIO_TOKENS }} pnpm build
- run: cp .github/env/shared/Dockerfile .blog/Dockerfile

- name: Set up dockertags
Expand Down
3 changes: 0 additions & 3 deletions .starter/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ export default defineNuxtConfig({
siteDescription: '',
language: 'en-US',
titleSeparator: '·',
studio: {
tokens: '',
},
},
},
})

0 comments on commit f4570cd

Please sign in to comment.