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';
4
4
import mtasaStarlightThemePlugin from 'starlight-theme-mtasa'
5
5
6
6
const 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 ;
9
9
10
10
// https://astro.build/config
11
11
export default defineConfig ( {
12
- site : siteName ,
13
- base : ownerName ,
12
+ site : siteBaseUrl ,
13
+ base : repositoryName ,
14
14
integrations : [
15
15
starlight ( {
16
16
title : 'Multi Theft Auto: Theme' ,
You can’t perform that action at this time.
0 commit comments