docs: add canary docs for <head> modifications (#3173)

Adds v2 version of "Modyfing the <head>" example. This is the next to
last page that needs to be updated (though the other only requires minor
changes to types).
This commit is contained in:
Christian Svensson
2025-08-05 23:50:58 +02:00
committed by GitHub
parent 4818faad1d
commit e014d80a0f
5 changed files with 212 additions and 4 deletions
+2
View File
@@ -30,6 +30,8 @@ export async function otherMiddleware(ctx: Context<State>): Promise<Response> {
With define helpers:
```ts util.ts
import { createDefine } from "fresh";
// Setup, do this once in a file and import it everywhere else.
export const define = createDefine<{ foo: string }>();
```