Skip to content

Commit 4e45f0b

Browse files
committed
fix: 🐛 deploy
1 parent a743cfd commit 4e45f0b

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy Next.js site to Pages
1+
name: Deploy Next.js site to GitHub Pages
22

33
on:
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:
@@ -54,4 +53,4 @@ jobs:
5453
steps:
5554
- name: Deploy to GitHub Pages
5655
id: deployment
57-
uses: actions/deploy-pages@v4
56+
uses: actions/deploy-pages@v4

next.config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import type { NextConfig } from "next";
22

33
const 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

1110
export default nextConfig;

0 commit comments

Comments
 (0)