Skip to content

Commit d4d016e

Browse files
author
赵汝波
committed
🐳 chore: 修改配置
1 parent 7293267 commit d4d016e

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

.github/workflows/deploy-github-pages.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ jobs:
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

astro.config.mjs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ import sitemap from "@astrojs/sitemap";
55
import rehypeSlug from "rehype-slug";
66
import rehypeMermaid from "rehype-mermaid";
77

8-
const deployTarget = process.env.DEPLOY_TARGET;
9-
const isGithubPages = deployTarget === "github";
10-
118
const 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-
2116
export default defineConfig({
2217
site,
23-
base,
2418
integrations: [mdx(), sitemap()],
2519
markdown: {
2620
processor: unified({

0 commit comments

Comments
 (0)