Skip to content

Commit 5ff83b0

Browse files
fix(ssg): set enforce as post (#299)
* fix(ssg): set `enforce` as `post` * ci: apply automated fixes * changeset --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 250ca8c commit 5ff83b0

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.changeset/nine-spiders-sneeze.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@hono/vite-ssg': patch
3+
---
4+
5+
fix: set `enforce` as `post`

packages/dev-server/e2e/e2e.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,5 +138,5 @@ test('Should not crash when receiving a HEAD request', async () => {
138138

139139
test('Should return ip address', async ({ page }) => {
140140
const response = await page.goto('/ip')
141-
expect(['127.0.0.1', '::1'].includes(await response?.text() ?? '')).toBe(true)
141+
expect(['127.0.0.1', '::1'].includes((await response?.text()) ?? '')).toBe(true)
142142
})

packages/dev-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,4 @@
117117
"@hono/node-server": "^1.14.2",
118118
"minimatch": "^9.0.3"
119119
}
120-
}
120+
}

packages/ssg/src/ssg.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export const ssgBuild = (options?: SSGOptions): Plugin => {
2929
return {
3030
name: '@hono/vite-ssg',
3131
apply: 'build',
32+
enforce: 'post',
3233
async config() {
3334
return {
3435
build: {

0 commit comments

Comments
 (0)