3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

fix: webpack dev server + index fallback for prod serve.js

This commit is contained in:
Dragory 2024-03-30 13:33:29 +00:00
parent c89c5ea430
commit 3cad4d319e
No known key found for this signature in database
6 changed files with 22 additions and 7 deletions

View file

@ -4,6 +4,11 @@ const path = require("path");
fastify.register(fastifyStatic, {
root: path.join(__dirname, "dist"),
wildcard: false,
});
fastify.get("*", (req, reply) => {
reply.sendFile("index.html");
});
fastify.listen({ port: 3002, host: '0.0.0.0' }, (err, address) => {