Skip to content

Commit

Permalink
Add base
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaitanLyss committed Aug 7, 2024
1 parent b187dc6 commit 43205b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:
types: [created]

env:
SITE_URL: https://shaitanlyss.github.io/selenite-docs/

SITE_URL: https://shaitanlyss.github.io
SITE_BASE: '/selenite-docs'
jobs:
build:
runs-on: ubuntu-latest
Expand Down
6 changes: 5 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import { loadEnv } from 'vite';

const { SITE_URL = 'http://localhost:4444' } = loadEnv(process.env.NODE_ENV, process.cwd(), "");
const { SITE_URL = 'http://localhost:4444', SITE_BASE = '' } = loadEnv(process.env.NODE_ENV, process.cwd(), "");
console.log('SITE_URL', SITE_URL);
console.log('SITE_BASE', SITE_BASE);
// https://astro.build/config
export default defineConfig({
site: SITE_URL,
base: SITE_BASE,
trailingSlash: 'always',
// prefetch: true,
integrations: [
starlight({
Expand Down

0 comments on commit 43205b0

Please sign in to comment.