Skip to content

Commit a743cfd

Browse files
committed
fix: 🐛 deploy
1 parent 40b24cb commit a743cfd

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/deploy.yml

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

33
on:
44
push:
@@ -27,11 +27,19 @@ jobs:
2727
cache: 'npm'
2828

2929
- name: Install dependencies
30-
run: npm ci
30+
run: |
31+
npm ci
32+
npm install sharp # Importante para el manejo de imágenes
33+
34+
- name: Setup Pages
35+
uses: actions/configure-pages@v4
3136

3237
- name: Build with Next.js
3338
run: npm run build
3439

40+
- name: Create .nojekyll file
41+
run: touch out/.nojekyll
42+
3543
- name: Upload artifact
3644
uses: actions/upload-pages-artifact@v3
3745
with:

next.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ const nextConfig: NextConfig = {
44
output: 'export', // Importante para generar archivos estáticos
55
images: {
66
unoptimized: true, // Necesario para exportación estática
7-
}
7+
},
8+
swcMinify: false,
89
};
910

1011
export default nextConfig;

0 commit comments

Comments
 (0)