mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-17 18:10:47 -04:00
analytics and embed meta update!!!
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// Purpose: Defines the embed Http Service module and the helpers/state used by this service unit.
|
||||
// Scope: Keeps runtime behavior unchanged while isolating responsibilities into a clear module boundary.
|
||||
const { app } = require('../../globals/http');
|
||||
const { renderIndexHtml, renderOgImage } = require('../embedService');
|
||||
const { renderIndexHtml, renderOgImage, renderWebManifest } = require('../embedService');
|
||||
|
||||
/*
|
||||
Every client-side BrowserRouter entry point must also be an explicit HTTP
|
||||
@@ -27,3 +27,13 @@ app.get('/og/preview.png', async (req, res) => {
|
||||
res.status(500).send('Failed to render embed image');
|
||||
}
|
||||
});
|
||||
|
||||
app.get('/manifest.webmanifest', (req, res) => {
|
||||
/*
|
||||
The manifest varies with server configuration, so it is served by the
|
||||
application rather than copied into Vite's static output. Revalidation
|
||||
lets browsers pick up branding changes after the server is restarted.
|
||||
*/
|
||||
res.set('Cache-Control', 'no-cache');
|
||||
res.type('application/manifest+json').send(renderWebManifest());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user