Skip to content

Commit

Permalink
fix(ci): add repo name to baseHref
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanAyaz committed Mar 25, 2024
1 parent 8b8be3a commit 0e96c23
Show file tree
Hide file tree
Showing 186 changed files with 1,068 additions and 182 deletions.
Expand Up @@ -123,7 +123,7 @@ describe('should add base href to projects', () => {
'utf-8'
);
expect(updatedProjectJson).toContain(
'"baseHref": "/chapter01/cc-inputs-outputs/start/"'
'"baseHref": "/Angular-Cookbook-2E/chapter01/cc-inputs-outputs/start/"'
);
});
});
Expand Down
Expand Up @@ -24,7 +24,7 @@ export default async function update(host: Tree) {
json.targets?.build?.configurations
) {
const configurations = json.targets.build.configurations;
const baseHref = `${project.targets.rename.options.chapter}/${project.targets.rename.options.app}/${workspaceName}`;
const baseHref = `Angular-Cookbook-2E/${project.targets.rename.options.chapter}/${project.targets.rename.options.app}/${workspaceName}`;
// If there's a production configuration, set the baseHref
if (configurations.production) {
configurations.production.baseHref = `/${baseHref}/`;
Expand Down

0 comments on commit 0e96c23

Please sign in to comment.