docs: mention new entrypoint in migration guide (#3222)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user