Skip to content

Commit ab683eb

Browse files
config fixes for gh pages deploy
1 parent 7b6939d commit ab683eb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

astro.config.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import sitemap from '@astrojs/sitemap';
44

55
// https://astro.build/config
66
export default defineConfig({
7-
site: 'https://github.com/serverless-mom/prompt-library',
7+
site: 'https://serverless-mom.github.io',
88
// Only use base path in production (GitHub Pages)
9-
base: process.env.NODE_ENV === 'production' ? '/astro-theme-terminal' : '/',
9+
base: '/prompt-library/',
10+
output: 'static',
1011
integrations: [sitemap()],
1112
markdown: {
1213
shikiConfig: {

src/layouts/BaseLayout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const base = import.meta.env.BASE_URL.endsWith('/') ? import.meta.env.BASE_URL :
133133

134134
<style is:global>
135135
/* Import all CSS files in the correct order */
136-
@import "${import.meta.env.BASE_URL}/styles/terminal.css";
136+
@import "../styles/terminal.css";
137137
@import "../styles/fonts.css";
138138
@import "../styles/main.css";
139139
@import "../styles/header.css";

0 commit comments

Comments
 (0)