resolveOutDir() — astro Function Reference
Architecture documentation for the resolveOutDir() function in node.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD c368da5c_3669_5369_225a_387a561f912d["resolveOutDir()"] b4396eb3_3c48_69c3_9cdf_b53ef92bae86["node.ts"] c368da5c_3669_5369_225a_387a561f912d -->|defined in| b4396eb3_3c48_69c3_9cdf_b53ef92bae86 6b92f0a2_bdc0_17a6_3da6_70585a39c264["loadLocalImage()"] 6b92f0a2_bdc0_17a6_3da6_70585a39c264 -->|calls| c368da5c_3669_5369_225a_387a561f912d bc57e204_62b2_557d_809f_f5264eb18411["appendForwardSlash()"] c368da5c_3669_5369_225a_387a561f912d -->|calls| bc57e204_62b2_557d_809f_f5264eb18411 style c368da5c_3669_5369_225a_387a561f912d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/assets/endpoint/node.ts lines 50–62
function resolveOutDir() {
const serverDirPath = fileURLToPath(serverDir);
const rel = path.relative(serverDirPath, fileURLToPath(outDir));
const serverFolder = path.basename(serverDirPath);
let serverEntryFolderURL = path.dirname(import.meta.url);
while (!serverEntryFolderURL.endsWith(serverFolder)) {
serverEntryFolderURL = path.dirname(serverEntryFolderURL);
}
const serverEntryURL = serverEntryFolderURL + '/entry.mjs';
const outDirURL = new URL(appendForwardSlash(rel), serverEntryURL);
return outDirURL;
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does resolveOutDir() do?
resolveOutDir() is a function in the astro codebase, defined in packages/astro/src/assets/endpoint/node.ts.
Where is resolveOutDir() defined?
resolveOutDir() is defined in packages/astro/src/assets/endpoint/node.ts at line 50.
What does resolveOutDir() call?
resolveOutDir() calls 1 function(s): appendForwardSlash.
What calls resolveOutDir()?
resolveOutDir() is called by 1 function(s): loadLocalImage.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free