diff --git a/docs/canary/examples/migration-guide.md b/docs/canary/examples/migration-guide.md index de2a016bb94..aac18ac02f2 100644 --- a/docs/canary/examples/migration-guide.md +++ b/docs/canary/examples/migration-guide.md @@ -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 `` component The `` component was used in Fresh 1.x to add additional tags to the