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
4 changes: 2 additions & 2 deletions packages/angular/ssr/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ import { buildPathWithParams, joinUrlParts, stripLeadingSlash } from './utils/ur
* bypass the Angular routing and rendering process.
*/
const WELL_KNOWN_NON_ANGULAR_URLS: ReadonlySet<string> = new Set<string>([
'favicon.ico',
'.well-known/appspecific/com.chrome.devtools.json',
'/favicon.ico',
'/.well-known/appspecific/com.chrome.devtools.json',
]);

/**
Expand Down
8 changes: 8 additions & 0 deletions packages/angular/ssr/test/app_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,14 @@ describe('AngularServerApp', () => {
});

describe('handle', () => {
it('should return null for well-known non-angular URLs', async () => {
const response = await app.handle(
new Request('http://localhost/.well-known/appspecific/com.chrome.devtools.json'),
);

expect(response).toBeNull();
});

describe('CSR and SSG pages', () => {
it('should correctly render the content for the requested page', async () => {
const response = await app.handle(new Request('http://localhost/home'));
Expand Down