Skip to content

Commit 1cb569c

Browse files
authored
fix: getContext() should be sync (#222)
* fix: getContext() should be sync * test: update assertion after demo site code change
1 parent 795c16c commit 1cb569c

File tree

13 files changed

+717
-3860
lines changed

13 files changed

+717
-3860
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ netlify serve
8080
```
8181
### App Engine Developer Preview usage with Angular@19
8282

83-
If you opt into the App Engine Developer Preview accessing `Request` and `Context` objects is streamlined. Instead of custom Netlify prefixed providers, you should use the standardized injection tokens for those provided by `@angular/ssr` instead:
83+
If you opt into the App Engine Developer Preview accessing `Request` and `Context` objects is streamlined. Instead of custom Netlify prefixed providers, you should use the standardized injection tokens for those provided by `@angular/core` instead:
8484

8585
```diff
86-
+import { REQUEST, REQUEST_CONTEXT } from '@angular/ssr/tokens'
86+
+import { REQUEST, REQUEST_CONTEXT } from '@angular/core'
8787
import type { Context } from "@netlify/edge-functions"
8888

8989
export class FooComponent {

demo.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ test('edge function config', async () => {
99
'/favicon.ico',
1010
'/heroes/index.html',
1111
'/index.csr.html',
12-
'/main-UP4QHVAQ.js',
12+
'/main-KVCR6MBP.js',
1313
'/polyfills-FFHMD2TL.js',
1414
'/styles-5INURTSO.css',
1515
'/heroes',

0 commit comments

Comments
 (0)