Skip to content

Commit dfe13a7

Browse files
committed
Debuggin production start
1 parent 3a37b1b commit dfe13a7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/webflo-runtime/webflo-server/WebfloServer.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ export class WebfloServer extends AppRuntime {
138138
if (revalidate
139139
|| !this.#buildContexts[realm]) {
140140
await this.#buildContexts[realm]?.dispose();
141+
console.info('Building routes...');
141142

142143
const entryPoints = await $glob(`${routeDirs[realm]}/**/handler{,.${realm}}.js`, { absolute: true })
143144
.then((files) => files.map((f) => f.replace(/\\/g, '/')));
@@ -172,7 +173,10 @@ export class WebfloServer extends AppRuntime {
172173
let buildResult;
173174
try {
174175
buildResult = await this.#buildContexts[realm].rebuild();
175-
} catch (e) { continue; }
176+
} catch (e) {
177+
console.error(e);
178+
continue;
179+
}
176180

177181
moduleGraph = { ...moduleGraph, ...buildResult.metafile.inputs };
178182
this.#buildOutputs[realm] = Object.fromEntries(buildResult.outputFiles?.map((f) => {

0 commit comments

Comments
 (0)