docs: mention new entrypoint in migration guide (#3222)

This commit is contained in:
Marvin Hagemeister
2025-08-18 12:58:39 +02:00
committed by GitHub
parent f80d049dca
commit 09b0c73d9f
+26
View File
@@ -121,6 +121,32 @@ export default function ErrorPage(props: PageProps) {
}
```
## Updating tasks
The server entrypoint is now generated by Fresh for more optimal startup times.
This means you need to update your task when launching Fresh in production mode.
To launch Fresh in production mode:
```diff
- deno run -A main.ts
+ deno serve -A _fresh/server.js
```
You'll likely have that command inside your `deno.json` as a task. Update it
accordingly.
```diff deno.json
{
"tasks":
"dev": "deno run -A dev.ts",
"build": "deno run -A dev.ts build",
- "preview": "deno run -A main.ts"
+ "preview": "deno serve -A _fresh/server.js"
}
}
```
## Removal of `<Head>` component
The `<Head>` component was used in Fresh 1.x to add additional tags to the