hd-garden 0.3.10 → 0.3.11

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.
@@ -9,8 +9,14 @@ import { repositoryContentPath } from "../../../lib/repository-path.mjs";
9
9
  import { readMarkdown, readText } from "../../../lib/ui-content";
10
10
 
11
11
  export const dynamic = process.env.STATIC_EXPORT === "1" ? "force-static" : "force-dynamic";
12
+ export const dynamicParams = false;
12
13
  export const metadata = { title: "草稿预览", robots: { index: false, follow: false } };
13
14
 
15
+ /** Draft preview is served by the admin worker. The public static export has no paths here. */
16
+ export function generateStaticParams() {
17
+ return [];
18
+ }
19
+
14
20
  const isRelative = (value: string) => !/^(?:[a-z][a-z0-9+.-]*:|\/|#)/iu.test(value);
15
21
 
16
22
  /** Same-name-directory files go through the authenticated, sandboxed proxy. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hd-garden",
3
- "version": "0.3.10",
3
+ "version": "0.3.11",
4
4
  "private": false,
5
5
  "description": "用 Markdown 写作、用 GitHub Pages 发布的个人博客引擎。",
6
6
  "license": "MIT",