This repository was archived by the owner on Sep 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ export interface ModuleOptions {
1818 gitInfo : GitInfo | null
1919}
2020
21- export interface ModuleHooks { }
22-
2321export default defineNuxtModule < ModuleOptions > ( {
2422 meta : {
2523 name : 'studio' ,
@@ -187,18 +185,18 @@ function _getGitEnv(): GitInfo {
187185 const envInfo = {
188186 // Provider
189187 provider : process . env . VERCEL_GIT_PROVIDER // vercel
190- || ( process . env . GITHUB_SERVER_URL ? 'github' : undefined ) // github
191- || '' ,
188+ || ( process . env . GITHUB_SERVER_URL ? 'github' : undefined ) // github
189+ || '' ,
192190 // Owner
193191 owner : process . env . VERCEL_GIT_REPO_OWNER // vercel
194- || process . env . GITHUB_REPOSITORY_OWNER // github
195- || process . env . CI_PROJECT_PATH ?. split ( '/' ) . shift ( ) // gitlab
196- || '' ,
192+ || process . env . GITHUB_REPOSITORY_OWNER // github
193+ || process . env . CI_PROJECT_PATH ?. split ( '/' ) . shift ( ) // gitlab
194+ || '' ,
197195 // Name
198196 name : process . env . VERCEL_GIT_REPO_SLUG
199- || process . env . GITHUB_REPOSITORY ?. split ( '/' ) . pop ( ) // github
200- || process . env . CI_PROJECT_PATH ?. split ( '/' ) . splice ( 1 ) . join ( '/' ) // gitlab
201- || '' ,
197+ || process . env . GITHUB_REPOSITORY ?. split ( '/' ) . pop ( ) // github
198+ || process . env . CI_PROJECT_PATH ?. split ( '/' ) . splice ( 1 ) . join ( '/' ) // gitlab
199+ || '' ,
202200 // Url
203201 url : process . env . REPOSITORY_URL || '' , // netlify
204202 }
You can’t perform that action at this time.
0 commit comments