mirror of
https://github.com/luxstatic/art.git
synced 2026-10-30 15:07:42 +00:00
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
41 lines
828 B
JavaScript
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)
|