- Added complete Next.js single-page website for Vocalinux - Configured static export with proper GitHub Pages deployment - Added GitHub Actions workflow for automated deployment to gh-pages branch - Configured custom domain (vocalinux.com) with CNAME file - Added comprehensive build script with npm support - Responsive design with dark/light theme toggle - Modern UI components with Tailwind CSS and shadcn/ui - Proper SEO metadata and accessibility features
49 lines
971 B
JavaScript
49 lines
971 B
JavaScript
// @ts-ignore
|
|
/** @type {import("next").NextConfig} */
|
|
const config = {
|
|
output: 'export',
|
|
trailingSlash: true,
|
|
// Configuration for custom domain deployment
|
|
distDir: 'out',
|
|
images: {
|
|
unoptimized: true,
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: '*',
|
|
pathname: '**',
|
|
},
|
|
],
|
|
},
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
typescript: {
|
|
ignoreBuildErrors: true,
|
|
},
|
|
productionBrowserSourceMaps: true,
|
|
webpack: (config, { isServer }) => {
|
|
config.stats = "verbose";
|
|
config.devtool = 'source-map'
|
|
// Enhanced node polyfills for postgres and other modules
|
|
if (!isServer) {
|
|
config.resolve.fallback = {
|
|
...config.resolve.fallback,
|
|
// File system - never needed in browser
|
|
fs: false,
|
|
net: false,
|
|
tls: false,
|
|
crypto: false,
|
|
stream: false,
|
|
'perf_hooks': false,
|
|
|
|
// Definitely not needed in browser
|
|
child_process: false,
|
|
dns: false,
|
|
};
|
|
}
|
|
return config;
|
|
},
|
|
};
|
|
export default config;
|