We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d7bdb0 commit b27fca2Copy full SHA for b27fca2
.changeset/proud-rats-flow.md
@@ -0,0 +1,5 @@
1
+---
2
+'@hono/vite-ssg': patch
3
4
+
5
+Load .env.{mode} to bundle environment variable
packages/ssg/src/ssg.ts
@@ -54,6 +54,7 @@ export const ssgBuild = (options?: SSGOptions): Plugin => {
54
const server = await createServer({
55
plugins: [],
56
build: { ssr: true },
57
+ mode: config.mode,
58
})
59
const module = await server.ssrLoadModule(entry)
60
0 commit comments