Skip to content

Commit f4570cd

Browse files
ci: add nuxt studio env at build time
1 parent e7fb4b3 commit f4570cd

File tree

7 files changed

+2
-14
lines changed

7 files changed

+2
-14
lines changed

.blog/nuxt.config.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,10 @@ export default defineNuxtConfig({
2424
siteDescription: '',
2525
language: 'en-US',
2626
titleSeparator: '·',
27-
studio: {
28-
tokens: '',
29-
},
3027
},
3128
},
3229

3330
experimental: {
3431
viewTransition: true,
35-
}
32+
},
3633
})

.cooking/nuxt.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ export default defineNuxtConfig({
1212
siteDescription: '',
1313
language: 'en-US',
1414
titleSeparator: '·',
15-
studio: {
16-
tokens: '',
17-
},
1815
},
1916
},
2017
})

.github/env/demo-blog/docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ services:
1212
- cssninja-services
1313
environment:
1414
- NUXT_PUBLIC_FRONTEND_URL=https://stylo.${HOST:-127.0.0.1.nip.io}/
15-
- NUXT_PUBLIC_STUDIO_TOKENS=${STUDIO_TOKENS}
1615
labels:
1716
traefik.enable: true
1817
traefik.docker.network: 'cssninja-services'

.github/env/demo-cooking/docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ services:
1212
- cssninja-services
1313
environment:
1414
- NUXT_PUBLIC_FRONTEND_URL=https://stylo-cooking.${HOST:-127.0.0.1.nip.io}/
15-
- NUXT_PUBLIC_STUDIO_TOKENS=${STUDIO_TOKENS}
1615
labels:
1716
traefik.enable: true
1817
traefik.docker.network: 'cssninja-services'

.github/env/demo-starter/docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ services:
1212
- cssninja-services
1313
environment:
1414
- NUXT_PUBLIC_FRONTEND_URL=https://stylo-starter.${HOST:-127.0.0.1.nip.io}/
15-
- NUXT_PUBLIC_STUDIO_TOKENS=${STUDIO_TOKENS}
1615
labels:
1716
traefik.enable: true
1817
traefik.docker.network: 'cssninja-services'

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
- run: corepack enable
6666
- run: pnpm install --frozen-lockfile
6767
- run: echo '{"extends":"./.blog/.nuxt/tsconfig.json"}' > tsconfig.json
68-
- run: pnpm build
68+
- run: NUXT_PUBLIC_STUDIO_TOKENS=${{ secrets.BLOG_STUDIO_TOKENS }} pnpm build
6969
- run: cp .github/env/shared/Dockerfile .blog/Dockerfile
7070

7171
- name: Set up dockertags

.starter/nuxt.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ export default defineNuxtConfig({
88
siteDescription: '',
99
language: 'en-US',
1010
titleSeparator: '·',
11-
studio: {
12-
tokens: '',
13-
},
1411
},
1512
},
1613
})

0 commit comments

Comments
 (0)