From 67fac4670b104afbea6976bd4a12f62d7b39c5c4 Mon Sep 17 00:00:00 2001
From: alex <alex@alexloehr.net>
Date: Fri, 13 Jun 2025 08:01:07 +0000
Subject: [PATCH] doc
---
app.js | 15 +--------------
1 files changed, 1 insertions(+), 14 deletions(-)
diff --git a/app.js b/app.js
index 76d02e4..7c2142b 100644
--- a/app.js
+++ b/app.js
@@ -174,7 +174,7 @@
})
-/////// STATIC ////////////////////////////////////////////////////////////////
+/////// STATIC / SPA ////////////////////////////////////////////////////////////////
fastify.register(require('@fastify/static'), {
@@ -183,19 +183,6 @@
// constraints: { host: 'example.com' } // optional: default {}
})
-
-
-// fastify.get('*', function (req, reply) {
-// console.log("!!!!!!!!! send index")
-// // index.html should never be cached
-// 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) {
--
Gitblit v1.8.0