File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
packages/cloudflare/src/cli/commands Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @opennextjs/cloudflare " : patch
3+ ---
4+
5+ fix: Compiled config is now imported using ` pathToFileURL ` to avoid crashes on Windows.
Original file line number Diff line number Diff line change 11import { existsSync } from "node:fs" ;
22import { createRequire } from "node:module" ;
33import path from "node:path" ;
4+ import url from "node:url" ;
45
56import { compileOpenNextConfig } from "@opennextjs/aws/build/compileConfig.js" ;
67import { normalizeOptions } from "@opennextjs/aws/build/helper.js" ;
@@ -71,7 +72,7 @@ export async function retrieveCompiledConfig() {
7172 process . exit ( 1 ) ;
7273 }
7374
74- const config = await import ( configPath ) . then ( ( mod ) => mod . default ) ;
75+ const config = await import ( url . pathToFileURL ( configPath ) . href ) . then ( ( mod ) => mod . default ) ;
7576 ensureCloudflareConfig ( config ) ;
7677
7778 return { config } ;
You can’t perform that action at this time.
0 commit comments