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:
parent
c89c5ea430
commit
3cad4d319e
6 changed files with 22 additions and 7 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue