Skip to content

Commit

Permalink
fixe windows path
Browse files Browse the repository at this point in the history
  • Loading branch information
nksaraf committed Sep 25, 2023
1 parent 51099e6 commit 319d049
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/vinxi/lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { build, copyPublicAssets, createNitro } from "nitropack";
import { join, relative } from "pathe";

import { writeFileSync } from "node:fs";
import { pathToFileURL } from "node:url";

import { createIncomingMessage, createServerResponse } from "./http-stream.js";
import invariant from "./invariant.js";
Expand Down Expand Up @@ -303,7 +304,9 @@ async function createRouterBuild(app, router) {
},
});

const render = await import(join(router.outDir + "_entry", "handler.js"));
const render = await import(
pathToFileURL(join(router.outDir + "_entry", "handler.js")).href
);

const smallApp = createApp();
smallApp.use(render.default);
Expand Down

0 comments on commit 319d049

Please sign in to comment.