File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 build :
1919 runs-on : ubuntu-latest
2020 env :
21- DEPLOY_TARGET : github
2221 SITE_URL : https://zrbjava.github.io
23- GITHUB_PAGES_BASE : /blog
2422 steps :
2523 - name : Checkout
2624 uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -5,9 +5,6 @@ import sitemap from "@astrojs/sitemap";
55import rehypeSlug from "rehype-slug" ;
66import rehypeMermaid from "rehype-mermaid" ;
77
8- const deployTarget = process . env . DEPLOY_TARGET ;
9- const isGithubPages = deployTarget === "github" ;
10-
118const site =
129 process . env . SITE_URL ??
1310 ( process . env . VERCEL_PROJECT_PRODUCTION_URL
@@ -16,11 +13,8 @@ const site =
1613 ? `https://${ process . env . VERCEL_URL } `
1714 : "https://zrbjava.github.io" ) ;
1815
19- const base = isGithubPages ? ( process . env . GITHUB_PAGES_BASE ?? "/blog" ) : "/" ;
20-
2116export default defineConfig ( {
2217 site,
23- base,
2418 integrations : [ mdx ( ) , sitemap ( ) ] ,
2519 markdown : {
2620 processor : unified ( {
You can’t perform that action at this time.
0 commit comments