frontend/server/plugins/DocumentComment.ts
2024-07-21 22:09:11 +02:00

28 lines
1.3 KiB
TypeScript

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`,
);
});
});