MCPcopy
hub / github.com/freshframework/fresh / writeCompiledEntry

Function writeCompiledEntry

packages/fresh/src/dev/dev_build_cache.ts:444–454  ·  view source on GitHub ↗
(outDir: string)

Source from the content-addressed store, hash-verified

442}
443
444export async function writeCompiledEntry(outDir: string) {
445 await Deno.writeTextFile(
446 path.join(outDir, "compiled-entry.js"),
447 `import fetcher from "./server.js";
448
449Deno.serve(
450 { port: Deno.env.get("PORT"), hostname: Deno.env.get("HOSTNAME") },
451 fetcher.fetch
452);`,
453 );
454}
455
456export async function generateSnapshotServer(
457 options: {

Callers 2

flushMethod · 0.85
writeBundleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected