Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions docs/canary/examples/migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading