File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ import starlight from '@astrojs/starlight';
44import mtasaStarlightThemePlugin from 'starlight-theme-mtasa'
55
66const isDeploy = process . env . GITHUB_ACTIONS === 'true' ;
7- const ownerName = isDeploy ? process . env . GITHUB_REPOSITORY_NAME : undefined ;
8- const siteName = isDeploy ? `https://${ process . env . GITHUB_REPOSITORY_OWNER } .github.io` : undefined ;
7+ const repositoryName = ( isDeploy && process . env . GITHUB_REPOSITORY ) ? ( process . env . GITHUB_REPOSITORY ) . split ( '/' ) [ 0 ] : undefined ;
8+ const siteBaseUrl = ( isDeploy && process . env . GITHUB_REPOSITORY_OWNER ) ? `https://${ process . env . GITHUB_REPOSITORY_OWNER } .github.io` : undefined ;
99
1010// https://astro.build/config
1111export default defineConfig ( {
12- site : siteName ,
13- base : ownerName ,
12+ site : siteBaseUrl ,
13+ base : repositoryName ,
1414 integrations : [
1515 starlight ( {
1616 title : 'Multi Theft Auto: Theme' ,
You can’t perform that action at this time.
0 commit comments