feat: support custom server entry (#3216)

This commit is contained in:
Marvin Hagemeister
2025-08-12 12:50:10 +02:00
committed by GitHub
parent f27f10fbcb
commit fe4a59a88c
5 changed files with 41 additions and 3 deletions
+1 -3
View File
@@ -366,9 +366,7 @@ export class DiskBuildCache<State> implements DevBuildCache<State> {
path.join(outDir, "server.js"),
generateServerEntry({
root: appPath,
serverEntry: path
.join(appPath, "main.ts")
.replaceAll(/[\\/]+/g, "/"),
serverEntry: pathToSpec(outDir, this.#config.serverEntry),
snapshotSpecifier: "./snapshot.js",
}),
);