Skip to content

[Fix] Astro relatives dirs #5709

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
5 changes: 3 additions & 2 deletions src/frameworks/astro/utils.ts
Original file line number Diff line number Diff line change
@@ -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");

Expand Down Expand Up @@ -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,
};
Expand Down