Skip to content

Conversation

@siddhantk232
Copy link
Contributor

@siddhantk232 siddhantk232 commented Oct 13, 2025

If a fastn package contains a 404.ftd file then visiting any 404 route
(a route that does not exist) will render this 404.ftd file.

For any other fastn error (error in syntax, calls to http processor
failing etc), the 500.ftd in current fastn package will be rendered.

when env DEBUG is set, the original error with a nicer message is shown
instead to give the developer some more context. In production, the
--trace output should be considered around these 404/500 requests to
know about the cause.

If a fastn package contains a 404.ftd file then visiting any 404 route
(a route that does not exist) will render this 404.ftd file.

For any other fastn error (error in syntax, calls to http processor
failing etc), the 500.ftd in current fastn package will be rendered.

when env DEBUG is set, the original error with a nicer message is shown
instead to give the developer some more context. In production, the
`--trace` output should be considered around these 404/500 requests to
know about the cause.
Links from the book overwrite original doc links. This may result in
some of the book links giving 404 pages. This is fixed by prefixing
every Book route with /book/.
@siddhantk232 siddhantk232 requested a review from amitu October 13, 2025 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants