Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions docs/latest/advanced/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,11 @@ To debug vite plugin transformations, use
[`vite-plugin-inspect`](https://github.com/antfu-collective/vite-plugin-inspect).
This gives you a UI that shows all transformations of all plugins for every
file.

## My deployment won't start

If your deployment doesn't boot, check the following things:

1. Make sure that you ran `deno task build`.
2. Make sure that your entry points to the generated `_fresh/server.js` file
instead of `main.ts`. The latter won't work with Fresh 2.
2 changes: 1 addition & 1 deletion packages/fresh/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export class App<State> {
DENO_DEPLOYMENT_ID !== undefined
) {
throw new Error(
`Could not find _fresh directory. Maybe you forgot to run "deno task build"?`,
`Could not find _fresh directory. Maybe you forgot to run "deno task build" or maybe you're trying to run "main.ts" directly instead of "_fresh/server.js"?`,
);
} else {
buildCache = new MockBuildCache([], this.config.mode);
Expand Down
Loading