Skip to content

Commit a97dcf1

Browse files
committed
chore(ssg): print warning when exiting
1 parent 6bae2e0 commit a97dcf1

File tree

1 file changed

+3
-0
lines changed
  • packages/qwik-router/src/adapters/shared/vite

1 file changed

+3
-0
lines changed

packages/qwik-router/src/adapters/shared/vite/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ export function viteAdapter(opts: ViteAdapterPluginOptions) {
220220
* For now, we'll force exit the process after SSG with some delay.
221221
*/
222222
setTimeout(() => {
223+
console.warn(
224+
'SSG seems to be hanging after completion, forcing process to exit. Everything is likely fine.'
225+
);
223226
process.exit(0);
224227
}, 5000).unref();
225228
}

0 commit comments

Comments
 (0)