-
Notifications
You must be signed in to change notification settings - Fork 78
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
🆒 Your use case
We have some routes that only renders the header or footer of the website.
For those routes we have the following config
routeRules: {
'/partners/**': {
noScripts: true,
},
}
We only want static html on those routes and it seems that nuxt-scripts loads gtm on those pages
scripts: {
registry: {
googleTagManager: true,
},
},
🆕 The solution you'd like
a routeRules option to disable scripts loading on specific routes
🔍 Alternatives you've considered
load scripts with useScript inside the layout (because those /partners routes use a different layout)
ℹ️ Additional info
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request