build(ssr): output path

This commit is contained in:
Stephen Zhou 2025-11-11 11:33:59 +08:00
parent c8b759948f
commit 36fd41cd1a
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
// @ts-ignore
// eslint-disable-next-line antfu/no-import-dist
import { createApp } from "../dist/server/index.js"
import { createApp } from "../dist/server/index.mjs"
export default async function handler(req: any, res: any) {
const app = await createApp()

View File

@ -21,7 +21,7 @@ export default defineConfig({
hooks.hook("build:done", async () => {
if (process.env.VERCEL !== "1") return
const outputFile = "dist/server/index.js"
const outputFile = "dist/server/index.mjs"
const tempFile = `${outputFile}.tmp`
try {