Skip to content

Commit 884874c

Browse files
committed
Fix build error
1 parent baf6f87 commit 884874c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020
cache: yarn
2121

2222
- name: Install dependencies
23-
run: yarn install
23+
run: |
24+
yarn set version latest
25+
yarn install
2426
- name: Build website
2527
run: yarn build
2628

server/pre-render.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const toAbsolute = (p: string) => Path.resolve(__dirname, p);
88
const distPath = (...ps: string[]) => Path.join(__dirname, "../dist", ...ps);
99

1010
const template = await FS.readFile(distPath("static/index.html"), "utf-8");
11+
// @ts-expect-error: no declaration
1112
const render = (await import("../dist/server/server-entry.js")).render as (
1213
url: string,
1314
context: Record<string, unknown>,

0 commit comments

Comments
 (0)