-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
44 lines (37 loc) · 1.18 KB
/
next.config.js
File metadata and controls
44 lines (37 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
trailingSlash: true,
skipTrailingSlashRedirect: true,
images: {
unoptimized: true,
},
// Configuração para GitHub Pages - basePath necessário para site de projeto
// URL: https://quantum-graph-ai.github.io/Quantum-Graph.github.io/
basePath: '/Quantum-Graph.github.io',
assetPrefix: '/Quantum-Graph.github.io',
outputFileTracingRoot: process.cwd(),
// Additional configurations for better static export compatibility
transpilePackages: ['framer-motion'],
// Disable ESLint during build to focus on functionality
eslint: {
ignoreDuringBuilds: true,
},
// Disable TypeScript checks during build
typescript: {
ignoreBuildErrors: true,
},
// Webpack configuration to handle module resolution issues
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
net: false,
tls: false,
};
}
return config;
},
};
module.exports = nextConfig;