From 45559d317f19645d85bd9d652a3b2726ed2551b2 Mon Sep 17 00:00:00 2001 From: Daniel Danielecki Date: Mon, 20 Nov 2023 03:03:05 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=20chore(extend-html.ts):=20add=20n?= =?UTF-8?q?ew=20plugin=20to=20extend=20HTML=20with=20Google=20Tag=20Manage?= =?UTF-8?q?r=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/plugins/extend-html.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 server/plugins/extend-html.ts diff --git a/server/plugins/extend-html.ts b/server/plugins/extend-html.ts new file mode 100644 index 0000000..692f1f2 --- /dev/null +++ b/server/plugins/extend-html.ts @@ -0,0 +1,7 @@ +export default defineNitroPlugin((nitroApp) => { + nitroApp.hooks.hook('render:html', (html, { event }) => { + html.head.push( + ``, + ) + }) +})