Files
art/next.config.js
zeekay 9498bb1b18 Optimize CI workflow and enable static export
CI Optimization:
- Single build/install step (was 3x redundant)
- Reuse build artifact for deployment
- Remove Vercel deployment (using GitHub Pages)
- Proper GitHub Pages permissions and environment

Build Configuration:
- Enable Next.js static export (output: 'export')
- Set images.unoptimized for static export
- Export to /out directory for GitHub Pages

Now builds once, tests with built files, deploys artifact
2025-10-10 12:48:01 -07:00

41 lines
828 B
JavaScript

const withMDX = require('@next/mdx')()
const svgrWebpackConfig = require('./svgr.next.config')
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
reactStrictMode: true,
typescript: {
ignoreBuildErrors: true,
},
eslint: {
ignoreDuringBuilds: true,
},
images: {
unoptimized: true,
remotePatterns: [
{
protocol: 'https',
hostname: 'cdn.lux.network',
pathname: '**',
},
{
protocol: "http",
hostname: "localhost",
}
],
},
transpilePackages: [
'@hanzo/ui',
'@hanzo/auth',
'@hanzo/commerce',
'@luxfi/ui',
'@luxfi/data'
],
productionBrowserSourceMaps: true,
webpack: svgrWebpackConfig
}
module.exports = withMDX(nextConfig)