Does anyone deep dived into SSG Generation workers ? (qwik-city/src/static/...)
I am trying to build Qwik project with Deno only (althrough i know it is not built for it).
However, It works fine all the way until "Starting Qwik City SSG..."
Where we get Deno not implemented.
I tried to rewrite this part and rebuild qwik-city.
most of node built-in are compatible, i rewrote use of globals __filename , process
and the build script (externals)
Once built & injected into my project workers just exit with code 0.
Here is a boilerplate of the build script for my qwik project
import { build } from "vite";
// ...
// reproduction of npm scripts build.client, build.server, build.types i used to see.
console.info(`Client build`) // build.client
await build(config)
console.info(`Server build`) // build.server
await build({
...config,
ssr: {
target: "webworker",
noExternal: true
},
plugins: [
...config.plugins || [],
denoServerAdapter({
ssg: {
include: ["/*"],
origin: "http://localhost",
}
}),
],
build: {
ssr: true,
rollupOptions: {
input: ["~/entry.deno.ts", "~/entry.ssr.tsx", "@qwik-city-plan"],
},
minify: false,
},
});
Deno.exit(0);