build(ssr): output path
This commit is contained in:
parent
c8b759948f
commit
36fd41cd1a
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue