Home / Function/ ForbiddenRewrite.message() — astro Function Reference

ForbiddenRewrite.message() — astro Function Reference

Architecture documentation for the ForbiddenRewrite.message() function in errors-data.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  23ab4b0b_b432_e3d3_19db_672349b86faf["ForbiddenRewrite.message()"]
  0e25cce4_bb3d_83b8_da61_b3d3cc567b74["errors-data.ts"]
  23ab4b0b_b432_e3d3_19db_672349b86faf -->|defined in| 0e25cce4_bb3d_83b8_da61_b3d3cc567b74
  style 23ab4b0b_b432_e3d3_19db_672349b86faf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/errors/errors-data.ts lines 1329–1332

	message: (from: string, to: string, component: string) =>
		`You tried to rewrite the on-demand route '${from}' with the static route '${to}', when using the 'server' output. \n\nThe static route '${to}' is rendered by the component
'${component}', which is marked as prerendered. This is a forbidden operation because during the build the component '${component}' is compiled to an
HTML file, which can't be retrieved at runtime by Astro.`,

Domain

Subdomains

Frequently Asked Questions

What does ForbiddenRewrite.message() do?
ForbiddenRewrite.message() is a function in the astro codebase, defined in packages/astro/src/core/errors/errors-data.ts.
Where is ForbiddenRewrite.message() defined?
ForbiddenRewrite.message() is defined in packages/astro/src/core/errors/errors-data.ts at line 1329.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free