mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
parent
759ebd747e
commit
35b1d08bfb
21 changed files with 196 additions and 257 deletions
|
@ -15,7 +15,7 @@ const bare = createBareServer("/bare/", {
|
|||
});
|
||||
|
||||
const fastify = Fastify({
|
||||
serverFactory: (handler) => {
|
||||
serverFactory: (handler, opts) => {
|
||||
return createServer()
|
||||
.on("request", (req, res) => {
|
||||
if (bare.shouldRoute(req)) {
|
||||
|
@ -53,14 +53,12 @@ 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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue