Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/danielroe/roe.dev. This is the code and content for my personal website, built in Nuxt. roe.dev
Something went wrong. Try again.
12345678910111213import { useServerHooks } from 'nuxt/server'
export default function () { useServerHooks().hook('render:island', island => { if (island.html.startsWith('<!--[-->')) { island.html = `<div data-island>${island.html}</div>` } else { island.html = island.html.replace(/(<\w+)([ >])/, '$1 data-island$2') } })}