this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: Compiled config is now imported using pathToFileURL to avoid crashes on Windows (#968)

authored by

rgembalik and committed by
GitHub
ddb0589a c399fa89

+7 -1
+5
.changeset/clean-lions-tan.md
··· 1 + --- 2 + "@opennextjs/cloudflare": patch 3 + --- 4 + 5 + fix: Compiled config is now imported using `pathToFileURL` to avoid crashes on Windows.
+2 -1
packages/cloudflare/src/cli/commands/utils.ts
··· 1 1 import { existsSync } from "node:fs"; 2 2 import { createRequire } from "node:module"; 3 3 import path from "node:path"; 4 + import url from "node:url"; 4 5 5 6 import { compileOpenNextConfig } from "@opennextjs/aws/build/compileConfig.js"; 6 7 import { normalizeOptions } from "@opennextjs/aws/build/helper.js"; ··· 71 72 process.exit(1); 72 73 } 73 74 74 - const config = await import(configPath).then((mod) => mod.default); 75 + const config = await import(url.pathToFileURL(configPath).href).then((mod) => mod.default); 75 76 ensureCloudflareConfig(config); 76 77 77 78 return { config };