Skip to content

Commit

Permalink
fix(nuxt): opt in to import.meta.* properties (#3888)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Mar 25, 2024
1 parent 3e50632 commit 1558cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/ssr-plugin.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ setSSRHandler('getDefaultStorage', () => {
}
})

if (process.server) {
if (import.meta.server) {
setSSRHandler('updateHTMLAttrs', (selector, attr, value) => {
if (selector === 'html') {
useHead({
Expand Down

0 comments on commit 1558cd2

Please sign in to comment.