app.js
@@ -191,6 +191,12 @@ // reply.sendFile('dist/index.html', {maxAge: 0, immutable: false}) // }) // const favicon = fs.readFileSync("./favicon-32x32.webp") // fastify.get("/ui/favicon.webp", async function (req, res) { // console.log("<<<<<<<<<<<<<<<<<<<<< favicon", favicon.length) // res.type("image/webp").send(favicon) // }) const indexFile = fs.readFileSync(path.join(__dirname, "vue/dist", 'index.html'), 'utf8') fastify.setNotFoundHandler(function (req, res) { console.log("!!!")