Web frameworksone line

burropost on Next.js

One line in app/layout.jsx. Every page, every press and every visit after that is in the office.

The app router. On the pages router the same Script goes in pages/_app.jsx.

The line and the file it goes in. Paste, deploy, done.

app/layout.jsx

jsx

import Script from 'next/script';

export default function RootLayout({ children }) {
  return (
    <html lang="en">
      <body>
        {children}
        <Script src="https://neonburro.com/nb-beacon.js" strategy="afterInteractive" />
      </body>
    </html>
  );
}

Waiting for the first signal

Quiet until the studio adds the address to the office. The first signal arrives with the first visit after that.