feat: Add friendly message after doctype on every page

This commit is contained in:
Jesse Wierzbinski 2024-07-21 22:09:11 +02:00
parent 54221ce42f
commit 2572392571
No known key found for this signature in database

View file

@ -0,0 +1,27 @@
const art = `
* Hello from the Lysand development team!
* If you are seeing this, we may need your help!
* Join development at https://github.com/lysand-org
*
* With from us:
* - @jessew@social.lysand.org
* - @aprl@social.lysand.org
* - @graphite@social.lysand.org
`;
export default defineNitroPlugin((nitroApp) => {
nitroApp.hooks.hook("render:response", (ctx) => {
ctx.body = ctx.body.replace(
"<!DOCTYPE html>",
`<!DOCTYPE html>\n<!--${art}-->\n`,
);
});
});