Skip to content

Commit 3dd8f00

Browse files
committed
add adsense script
1 parent 6e1c32c commit 3dd8f00

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

NEXT_STEPS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ Mantén este archivo actualizado al final de cada sesión. Úsalo como checklist
1717
- Revisar fondo actual (blobs + grid) y ajustar opacidad/densidad si es necesario.
1818
- Verificar imagen `public/me.png` en About: tamaño, blur y ring en dispositivos móviles.
1919

20+
## Monetización
21+
22+
- Validar que el script de AdSense cargue correctamente en `app/layout.tsx` tras `next export` y que no genere CLS ni bloqueos de render en la build estática.
23+
2024
## Deploy
2125

2226
- Confirmar que `pages.yml` despliega correctamente a `gh-pages` raíz (CNAME `jedabero.me` en `public/`).

app/layout.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { Metadata } from 'next';
22
import { Space_Grotesk, Manrope } from 'next/font/google';
3+
import Script from 'next/script';
34
import './globals.css';
45

56
const display = Space_Grotesk({
@@ -26,6 +27,11 @@ export default function RootLayout({
2627
return (
2728
<html lang="es">
2829
<body className={`${display.variable} ${body.variable} font-body bg-page-gradient bg-base-bg text-base-text`}>
30+
<Script
31+
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3740467952996532"
32+
strategy="afterInteractive" // carga solo después de que la app está lista para evitar bloquear el render inicial
33+
crossOrigin="anonymous"
34+
/>
2935
{children}
3036
</body>
3137
</html>

0 commit comments

Comments
 (0)