MCPcopy Create free account
hub / github.com/Oslonline/dithering-studio / outputPathForRoute

Function outputPathForRoute

scripts/prerender.mjs:123–127  ·  view source on GitHub ↗
(route)

Source from the content-addressed store, hash-verified

121};
122
123const outputPathForRoute = (route) => {
124 if (route === '/') return path.join(distDir, 'index.html');
125 const clean = route.replace(/^\//, '');
126 return path.join(distDir, clean, 'index.html');
127};
128
129const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
130

Callers 2

fallbackStaticCopiesFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected