We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbe204d commit b534401Copy full SHA for b534401
1 file changed
docs-site/astro.config.mjs
@@ -1,3 +1,15 @@
1
import { defineConfig } from 'astro/config';
2
import starlight from '@astrojs/starlight';
3
-export default defineConfig({ integrations: [starlight({ title: 'Askbase Docs', social:{ github:'https://github.com/dsantoreis/askbase' } })] });
+
4
+const isGitHubPages = process.env.GITHUB_ACTIONS === 'true';
5
6
+export default defineConfig({
7
+ site: 'https://dsantoreis.github.io',
8
+ base: isGitHubPages ? '/askbase/' : '/',
9
+ integrations: [
10
+ starlight({
11
+ title: 'Askbase Docs',
12
+ social: { github: 'https://github.com/dsantoreis/askbase' },
13
+ }),
14
+ ],
15
+});
0 commit comments