diff --git a/CHANGELOG.md b/CHANGELOG.md index 622a68b8557..a86d7eb42da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +- Addressed an issue preventing Astro applications from being deployed from Windows. (#5709) - Fixed an issue preventing Angular apps using ng-deploy from being emulated or deployed. (#6584) - Warn if a Web Framework is outside a well known version range on deploy/emulate. (#6562) - Use Web Framework's well known version range in `firebase init hosting`. (#6562) diff --git a/src/frameworks/astro/utils.ts b/src/frameworks/astro/utils.ts index 89571ce11cc..babb9f3d48b 100644 --- a/src/frameworks/astro/utils.ts +++ b/src/frameworks/astro/utils.ts @@ -1,6 +1,7 @@ import { dirname, join, relative } from "path"; import { findDependency } from "../utils"; import { gte } from "semver"; +import { fileURLToPath } from "url"; const { dynamicImport } = require(true && "../../dynamicImport"); @@ -29,8 +30,8 @@ export async function getConfig(cwd: string) { config = astroConfig; } return { - outDir: relative(cwd, config.outDir.pathname), - publicDir: relative(cwd, config.publicDir.pathname), + outDir: relative(cwd, fileURLToPath(config.outDir)), + publicDir: relative(cwd, fileURLToPath(config.publicDir)), output: config.output, adapter: config.adapter, };