Skip to content

Commit 7284eed

Browse files
committed
Correction de la configuration pour le déploiement sur /piwi/
1 parent aa3bf5f commit 7284eed

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ jobs:
3333
branch: gh-pages
3434
token: ${{ secrets.GITHUB_TOKEN }}
3535
clean: true
36+
repository-name: piwi/piwi.github.io

next.config.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ const isProd = process.env.NODE_ENV === 'production';
33

44
const nextConfig = {
55
output: 'export',
6-
basePath: isProd ? '/piwi' : '',
7-
assetPrefix: isProd ? '/piwi/' : '',
6+
basePath: '/piwi',
7+
assetPrefix: '/piwi/',
88
images: {
99
unoptimized: true,
1010
},
1111
experimental: {
1212
// Désactiver l'optimisation des images pour l'export statique
1313
optimizePackageImports: ['framer-motion']
14-
},
15-
// Désactiver le moteur Turbopack
16-
turbo: false
14+
}
1715
};
1816

1917
module.exports = nextConfig;

0 commit comments

Comments
 (0)