Home / Function/ appendForwardSlash() — astro Function Reference

appendForwardSlash() — astro Function Reference

Architecture documentation for the appendForwardSlash() function in serve-static.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  954586a3_864e_99af_8529_1fa34a515811["appendForwardSlash()"]
  6f42a928_6dfc_6650_ab39_c8d254e11681["serve-static.ts"]
  954586a3_864e_99af_8529_1fa34a515811 -->|defined in| 6f42a928_6dfc_6650_ab39_c8d254e11681
  6b657031_c1e0_9ceb_d4e4_6e9871dbb5c2["resolveClientDir()"]
  6b657031_c1e0_9ceb_d4e4_6e9871dbb5c2 -->|calls| 954586a3_864e_99af_8529_1fa34a515811
  style 954586a3_864e_99af_8529_1fa34a515811 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/node/src/serve-static.ts lines 146–148

function appendForwardSlash(pth: string) {
	return pth.endsWith('/') ? pth : pth + '/';
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does appendForwardSlash() do?
appendForwardSlash() is a function in the astro codebase, defined in packages/integrations/node/src/serve-static.ts.
Where is appendForwardSlash() defined?
appendForwardSlash() is defined in packages/integrations/node/src/serve-static.ts at line 146.
What calls appendForwardSlash()?
appendForwardSlash() is called by 1 function(s): resolveClientDir.

Analyze Your Own Codebase

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

Try Supermodel Free