File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ export default defineNuxtModule<ModuleOptions>({
69
69
owner : options . owner || process . env . GITHUB_OWNER ,
70
70
branch : options . branch || process . env . GITHUB_BRANCH ,
71
71
repo : options . repo || process . env . GITHUB_REPO ,
72
- token : options . token || process . env . GITHUB_TOKEN ,
73
72
disableCache : options . disableCache ,
74
73
parseContents : options . parseContents ,
75
74
maxContributors : options . maxContributors
@@ -79,7 +78,9 @@ export default defineNuxtModule<ModuleOptions>({
79
78
// @ts -ignore
80
79
nuxt . options . runtimeConfig . public . github = defu ( nuxt . options . runtimeConfig . public . github , config )
81
80
// @ts -ignore
82
- nuxt . options . runtimeConfig . github = defu ( nuxt . options . runtimeConfig . github , config )
81
+ nuxt . options . runtimeConfig . github = defu ( nuxt . options . runtimeConfig . github , {
82
+ token : options . token || process . env . GITHUB_TOKEN
83
+ } , config )
83
84
84
85
// Autolink issue/PR/commit links using `remark-github` plugin
85
86
if ( options . remarkPlugin ) {
You can’t perform that action at this time.
0 commit comments