MCPcopy Create free account
hub / github.com/TanStack/router / resolveDistServerEntryPath

Function resolveDistServerEntryPath

e2e/solid-start/basic/server.js:16–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14const distClientDir = path.resolve(distDir, 'client')
15
16function resolveDistServerEntryPath() {
17 const serverJsPath = path.resolve(distDir, 'server', 'server.js')
18 if (fs.existsSync(serverJsPath)) {
19 return serverJsPath
20 }
21
22 const indexJsPath = path.resolve(distDir, 'server', 'index.js')
23 if (fs.existsSync(indexJsPath)) {
24 return indexJsPath
25 }
26
27 return serverJsPath
28}
29
30export async function createStartServer() {
31 const distServerEntryPath = resolveDistServerEntryPath()

Callers 1

createStartServerFunction · 0.70

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected