File tree Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 1- name : Deploy Next.js site to Pages
1+ name : Deploy Next.js site to GitHub Pages
22
33on :
44 push :
@@ -29,17 +29,16 @@ jobs:
2929 - name : Install dependencies
3030 run : |
3131 npm ci
32- npm install sharp # Importante para el manejo de imágenes
33-
32+ npm install sharp # Importante para imágenes
33+
3434 - name : Setup Pages
3535 uses : actions/configure-pages@v4
3636
3737 - name : Build with Next.js
38- run : npm run build
39-
40- - name : Create .nojekyll file
41- run : touch out/.nojekyll
42-
38+ run : |
39+ npm run build
40+ touch out/.nojekyll # Evita que GitHub Pages ignore archivos _next
41+
4342 - name : Upload artifact
4443 uses : actions/upload-pages-artifact@v3
4544 with :
5453 steps :
5554 - name : Deploy to GitHub Pages
5655 id : deployment
57- uses : actions/deploy-pages@v4
56+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 11import type { NextConfig } from "next" ;
22
33const nextConfig : NextConfig = {
4- output : 'export' , // Importante para generar archivos estáticos
4+ reactStrictMode : true ,
55 images : {
6- unoptimized : true , // Necesario para exportación estática
6+ unoptimized : true ,
77 } ,
8- swcMinify : false ,
98} ;
109
1110export default nextConfig ;
You can’t perform that action at this time.
0 commit comments