Skip to content

Commit

Permalink
refactor: adapt next.config.js for static export
Browse files Browse the repository at this point in the history
  • Loading branch information
Qlix826 committed Jan 22, 2025
1 parent 69eba23 commit a1a9f27
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
// Désactiver temporairement HTTPS pour le développement
// Une fois que tout fonctionne, configurez HTTPS correctement
output: 'export',
basePath: '/verifio',
images: {
unoptimized: true,
},
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
net: false,
tls: false,
fs: false,
'fs/promises': false,
buffer: require.resolve('buffer/'),
};
}
return config;
Expand All @@ -22,11 +24,6 @@ const nextConfig = {
AUTH0_CLIENT_ID: process.env.AUTH0_CLIENT_ID,
},
poweredByHeader: false,
images: {
unoptimized: true,
},
output: 'export',
basePath: '/verifio',
};

module.exports = nextConfig;

0 comments on commit a1a9f27

Please sign in to comment.