@jet-w/astro-blog 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,48 +1,39 @@
1
1
  ---
2
- active: false
3
- iteration: 2
2
+ active: true
3
+ iteration: 1
4
4
  max_iterations: 20
5
5
  completion_promise: "DONE"
6
- started_at: "2026-01-29T01:25:08Z"
7
- completed_at: "2026-01-29T01:48:00Z"
6
+ started_at: "2026-01-29T09:04:01Z"
8
7
  ---
9
8
 
10
- DONE
11
-
12
- ## Issue Fixed
13
-
14
- The i18n URL routing and navigation link issue has been resolved.
15
-
16
- ### Root Cause Analysis
17
-
18
- When English is set as the default locale with `prefixDefaultLocale: false`:
19
- - English pages use URLs without prefix: `/posts/...`
20
- - Chinese pages should use URLs with prefix: `/zh-CN/posts/...`
21
-
22
- However, the navigation menu and sidebar tree links in the zh-CN locale config were missing the `/zh-CN/` prefix, causing navigation links to point to the wrong locale.
23
-
24
- ### Files Modified
25
-
26
- 1. **`templates/default/src/config/locales/zh-CN/menu.ts`**
27
- - Updated all menu links to include `/zh-CN/` prefix
28
- - Changed `href: '/'` to `href: '/zh-CN/'`
29
- - Changed `href: '/posts/...'` to `href: '/zh-CN/posts/...'`
30
- - Changed `href: '/slides'` to `href: '/zh-CN/slides'`
31
- - Changed `href: '/about'` to `href: '/zh-CN/about'`
32
-
33
- 2. **`templates/default/src/config/locales/zh-CN/sidebar.ts`**
34
- - Updated sidebar group titles to Chinese: '快速入门', '使用指南', '配置文档'
35
- - Updated comments to Chinese
36
-
37
- 3. **`src/components/layout/Sidebar.astro`**
38
- - Fixed all tree links to use `${localePrefix}/posts/...` instead of hardcoded `/posts/...`
39
- - This ensures sidebar tree navigation respects the current locale
40
-
41
- ### URL Behavior (Correct)
42
-
43
- | Language | URL Pattern |
44
- |----------|-------------|
45
- | English (default) | `/posts/...`, `/slides`, `/about` |
46
- | Chinese | `/zh-CN/posts/...`, `/zh-CN/slides`, `/zh-CN/about` |
47
-
48
- This is the expected behavior with `prefixDefaultLocale: false`.
9
+ There is an error happened after running npm run build for default template in github action
10
+ 8:27:27 AM [vite] (ssr) Error when evaluating SSR module /home/runner/work/jet-w.astro-blog/jet-w.astro-blog/templates/default/astro.config.mjs: Failed to resolve entry for package @jet-w/astro-blog. The package may have incorrect main/module/exports specified in its package.json.
11
+ Plugin: vite:import-analysis
12
+ File: /home/runner/work/jet-w.astro-blog/jet-w.astro-blog/templates/default/astro.config.mjs:11:46
13
+ 9 |
14
+ 10 | // Import plugins and integration from @jet-w/astro-blog
15
+ 11 | import { astroBlog, defineI18nConfig } from '@jet-w/astro-blog';
16
+ | ^
17
+ 12 | import { remarkProtectCode, rehypeRestoreCode } from '@jet-w/astro-blog/plugins/remark-protect-code.mjs';
18
+ 13 | import { remarkContainers } from '@jet-w/astro-blog/plugins/remark-containers.mjs';
19
+ at packageEntryFailure (file:///home/runner/work/jet-w.astro-blog/jet-w.astro-blog/templates/default/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:16198:15)
20
+ at resolvePackageEntry (file:///home/runner/work/jet-w.astro-blog/jet-w.astro-blog/templates/default/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:16195:3)
21
+ at tryNodeResolve (file:///home/runner/work/jet-w.astro-blog/jet-w.astro-blog/templates/default/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:16060:18)
22
+ at ResolveIdContext.resolveId (file:///home/runner/work/jet-w.astro-blog/jet-w.astro-blog/templates/default/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:15831:19)
23
+ at EnvironmentPluginContainer.resolveId (file:///home/runner/work/jet-w.astro-blog/jet-w.astro-blog/templates/default/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:42242:17)
24
+ at async TransformPluginContext.resolve (file:///home/runner/work/jet-w.astro-blog/jet-w.astro-blog/templates/default/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:42449:15)
25
+ at async normalizeUrl (file:///home/runner/work/jet-w.astro-blog/jet-w.astro-blog/templates/default/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:40492:26)
26
+ at async file:///home/runner/work/jet-w.astro-blog/jet-w.astro-blog/templates/default/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:40623:37
27
+ at async Promise.all (index 8)
28
+ at async TransformPluginContext.transform (file:///home/runner/work/jet-w.astro-blog/jet-w.astro-blog/templates/default/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:40550:7)
29
+ [astro] Unable to load your Astro config
30
+ Failed to resolve entry for package @jet-w/astro-blog. The package may have incorrect main/module/exports specified in its package.json.
31
+ Location:
32
+ /home/runner/work/jet-w.astro-blog/jet-w.astro-blog/templates/default/astro.config.mjs:11:46
33
+ Stack trace:
34
+ at packageEntryFailure (file:///home/runner/work/jet-w.astro-blog/jet-w.astro-blog/templates/default/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:16198:15)
35
+ at tryNodeResolve (file:///home/runner/work/jet-w.astro-blog/jet-w.astro-blog/templates/default/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:16060:18)
36
+ at EnvironmentPluginContainer.resolveId (file:///home/runner/work/jet-w.astro-blog/jet-w.astro-blog/templates/default/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:42242:17)
37
+ at async normalizeUrl (file:///home/runner/work/jet-w.astro-blog/jet-w.astro-blog/templates/default/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:40492:26)
38
+ at async Promise.all (index 8)
39
+ Error: Process completed with exit code 1.
@@ -68,8 +68,8 @@ export default defineConfig({
68
68
  wrap: true
69
69
  }
70
70
  },
71
- site: 'https://example.com',
72
- base: '/',
71
+ site: process.env.SITE_URL || 'https://example.com',
72
+ base: process.env.BASE_PATH || '/',
73
73
  build: {
74
74
  assets: 'assets'
75
75
  },