Home / Function/ subpathNotUsedTemplate() — astro Function Reference

subpathNotUsedTemplate() — astro Function Reference

Architecture documentation for the subpathNotUsedTemplate() function in 4xx.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  9c96b7b3_d2d3_bce8_170d_925846d18f0c["subpathNotUsedTemplate()"]
  290d338a_b86f_3c08_2047_f178684bb43d["4xx.ts"]
  9c96b7b3_d2d3_bce8_170d_925846d18f0c -->|defined in| 290d338a_b86f_3c08_2047_f178684bb43d
  91253924_739f_881f_85ec_9ccad58d1384["template()"]
  9c96b7b3_d2d3_bce8_170d_925846d18f0c -->|calls| 91253924_739f_881f_85ec_9ccad58d1384
  style 9c96b7b3_d2d3_bce8_170d_925846d18f0c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/template/4xx.ts lines 122–131

export function subpathNotUsedTemplate(base: string, pathname: string) {
	return template({
		pathname,
		statusCode: 404,
		title: 'Not found',
		tabTitle: '404: Not Found',
		body: `<p>In your <code>site</code> you have your base path set to <a href="${base}">${base}</a>. Do you want to go there instead?</p>
<p>Come to our <a href="https://astro.build/chat">Discord</a> if you need help.</p>`,
	});
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does subpathNotUsedTemplate() do?
subpathNotUsedTemplate() is a function in the astro codebase, defined in packages/astro/src/template/4xx.ts.
Where is subpathNotUsedTemplate() defined?
subpathNotUsedTemplate() is defined in packages/astro/src/template/4xx.ts at line 122.
What does subpathNotUsedTemplate() call?
subpathNotUsedTemplate() calls 1 function(s): template.

Analyze Your Own Codebase

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

Try Supermodel Free