Skip to content
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
@@ -0,0 +1 @@
- Fixed an issue preventing Angular apps using ng-deploy from being emulated or deployed. (#6584)
8 changes: 7 additions & 1 deletion src/frameworks/angular/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ export async function getContext(dir: string, targetOrConfiguration?: string) {
}

if (deployTarget) {
const options = await architectHost.getOptionsForTarget(deployTarget);
const options = await architectHost
.getOptionsForTarget(deployTarget)
.catch(() => workspaceProject.targets.get(deployTarget!.target)?.options);
if (!options) throw new FirebaseError("Unable to get options for ng-deploy.");
if (options.buildTarget) {
assertIsString(options.buildTarget);
Expand All @@ -238,6 +240,10 @@ export async function getContext(dir: string, targetOrConfiguration?: string) {
assertIsString(options.serverTarget);
serverTarget = targetFromTargetString(options.serverTarget);
}
if (options.serveTarget) {
assertIsString(options.serveTarget);
serveTarget = targetFromTargetString(options.serveTarget);
}
if (options.serveOptimizedImages) {
serveOptimizedImages = true;
}
Expand Down