Skip to content

Commit 0a44d80

Browse files
committed
insert GITHUB_TOKEN only in production
1 parent fcda31c commit 0a44d80

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/nuxt.config.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
import theme from '@nuxt/content-theme-docs'
22
import path from 'path'
33

4+
const env = {
5+
...(process.env.NODE_ENV === 'production' && {
6+
GITHUB_TOKEN: process.env.GITHUB_TOKEN
7+
})
8+
}
9+
410
export default theme({
511
router: {
612
base: '/vue-final-modal/'
713
},
8-
env: {
9-
GITHUB_TOKEN: process.env.GITHUB_TOKEN
10-
},
14+
env,
1115
generate: {
1216
dir: 'docs'
1317
},

0 commit comments

Comments
 (0)