File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 3838 - name : Install dependencies
3939 run : npm ci
4040 - name : Build with Astro
41- run : BASE_URL='pokeapi.co' npm run build
41+ # run: BASE_URL='https://pokeapi.github.io/' npm run build
42+ run : npm run build --site 'https://pokeapi.github.io/' --base 'pokeapi.co'
4243 - name : Upload artifact
4344 uses : actions/upload-pages-artifact@v3
4445 with :
5455 steps :
5556 - name : Deploy to GitHub Pages
5657 id : deployment
57- uses : actions/deploy-pages@v4
58+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ import starlight from '@astrojs/starlight'
33import starlightOpenAPI , { openAPISidebarGroups } from 'starlight-openapi'
44import tailwindcss from '@tailwindcss/vite'
55
6- const base_url = process . env . BASE_URL || ''
6+ // const base_url = process.env.BASE_URL || ''
77
88export default defineConfig ( {
99 site : 'https://pokeapi.co' ,
10- base : base_url ,
10+ base : '/pokeapi.co' ,
1111 integrations : [
1212 starlight ( {
1313 title : 'PokéAPI' ,
@@ -26,7 +26,8 @@ export default defineConfig({
2626 // Generate the OpenAPI documentation pages.
2727 starlightOpenAPI ( [
2828 {
29- base : `${ base_url } /v2/openapi` ,
29+ // base: `${base_url}/v2/openapi`,
30+ base : `/v2/openapi` ,
3031 label : 'OpenAPI' ,
3132 schema : 'https://raw.githubusercontent.com/PokeAPI/pokeapi/master/openapi.yml' ,
3233 } ,
You can’t perform that action at this time.
0 commit comments