small changes

This commit is contained in:
Avad3 2024-07-11 18:59:51 -04:00
parent 8c7255ccf8
commit 3a85734b7f
22 changed files with 244 additions and 200 deletions

View file

@ -15,7 +15,7 @@ const bare = createBareServer("/bare/", {
});
const fastify = Fastify({
serverFactory: (handler, opts) => {
serverFactory: (handler) => {
return createServer()
.on("request", (req, res) => {
if (bare.shouldRoute(req)) {
@ -53,12 +53,14 @@ const devServer = await context({
worker: "./src/worker/index.ts",
codecs: "./src/codecs/index.ts",
config: "./src/scramjet.config.ts",
html: "./src/html/index.ts"
},
entryNames: "scramjet.[name]",
outdir: "./dist",
bundle: true,
sourcemap: true,
logLevel: "info",
format: "esm",
plugins: [
copy({
resolveFrom: "cwd",