frontend/server/plugins/DocumentComment.ts
2024-08-28 00:23:29 +02:00

28 lines
1.2 KiB
TypeScript

const art = `
██╗ ██╗███████╗██████╗ ███████╗██╗ █████╗
██║ ██║██╔════╝██╔══██╗██╔════╝██║██╔══██╗
██║ ██║█████╗ ██████╔╝███████╗██║███████║
╚██╗ ██╔╝██╔══╝ ██╔══██╗╚════██║██║██╔══██║
╚████╔╝ ███████╗██║ ██║███████║██║██║ ██║
╚═══╝ ╚══════╝╚═╝ ╚═╝╚══════╝╚═╝╚═╝ ╚═╝
* Hello from the Versia development team!
* If you are seeing this, we may need your help!
* Join development at https://github.com/versia-pub
*
* 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`,
);
});
});