We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d70fe37 commit 0075f1bCopy full SHA for 0075f1b
README.md
@@ -73,6 +73,10 @@ import { useCompression } from 'h3-compression'
73
74
export default defineNitroPlugin((nitro) => {
75
nitro.hooks.hook('render:response', async (response, { event }) => {
76
+ // Skip internal nuxt routes (e.g. error page)
77
+ if (getRequestURL(event).pathname.startsWith('/__nuxt'))
78
+ return
79
+
80
if (!response.headers?.['content-type']?.startsWith('text/html'))
81
return
82
0 commit comments