-
Notifications
You must be signed in to change notification settings - Fork 734
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update Angular template to version 19
This prerelease version 19 includes several developer experience (DX) improvements: - Introduces a new server routing API - Portable with no Node.js dependencies - Supports a "neutral" output format
- Loading branch information
1 parent
a30c805
commit 017f42d
Showing
8 changed files
with
47 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"create-cloudflare": minor | ||
--- | ||
|
||
Update Angular template to version 19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
packages/create-cloudflare/templates/angular/templates/server.ts
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
packages/create-cloudflare/templates/angular/templates/src/server.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { AngularAppEngine, createRequestHandler } from '@angular/ssr'; | ||
|
||
const angularApp = new AngularAppEngine(); | ||
|
||
/** | ||
* This is a request handler used by the Angular CLI (dev-server and during build). | ||
*/ | ||
export const reqHandler = createRequestHandler(async (req) => { | ||
const res = await angularApp.render(req); | ||
|
||
return res ?? new Response('Page not found.', { status: 404 }); | ||
}); | ||
|
||
|
||
export default { fetch: reqHandler }; |
27 changes: 0 additions & 27 deletions
27
packages/create-cloudflare/templates/angular/templates/tools/alter-polyfills.mjs
This file was deleted.
Oops, something went wrong.
10 changes: 8 additions & 2 deletions
10
packages/create-cloudflare/templates/angular/templates/tools/copy-files.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
packages/create-cloudflare/templates/angular/templates/tools/paths.mjs
This file was deleted.
Oops, something went wrong.