mirror of
https://github.com/hanzoai/bootnode.git
synced 2026-09-30 20:46:32 +00:00
Names the two halves for what they are. The repo already holds both (12407e9 merged bootnode/bootnode into this history); this makes the frontend directory say so, so the layout reads the way the owner describes the system: backend and frontend separate, one repo. git mv throughout — 187 renames, history preserved. Every path reference follows: hanzo.yml build context and dockerfile, compose.yml, compose.prod.yml, start.sh, LLM.md, infra/k8s/web-deployments.yaml, infra/cloud/deploy.sh, and the Dockerfile's own COPY paths. Image and container names (bootnode-web, the -web tag suffix) are deliberately NOT renamed here: those are a deploy contract the App CR and ingress bind to on port 3001, and breaking them is a separate, staged change. Console builds green after the move; the Go tree builds. Co-authored-by: Hanzo Dev <[email protected]>
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
import type { NextConfig } from "next"
|
|
|
|
const nextConfig: NextConfig = {
|
|
// Modern React & Next.js features
|
|
reactStrictMode: true,
|
|
poweredByHeader: false,
|
|
|
|
// Static export for Cloudflare Pages (lux.cloud).
|
|
// The app is client-rendered (auth via localStorage, brand auto-detected from
|
|
// window.location.hostname in lib/brand.ts), so a static export serves the full
|
|
// console as static assets on Pages' CDN — no edge/Node server required.
|
|
output: "export",
|
|
devIndicators: false,
|
|
|
|
// Turbopack configuration (required for Next.js 16)
|
|
turbopack: {},
|
|
|
|
// Image optimization is unavailable in static export; serve images as-is.
|
|
images: {
|
|
unoptimized: true,
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "**",
|
|
},
|
|
],
|
|
formats: ['image/avif', 'image/webp']
|
|
},
|
|
|
|
// NOTE: headers() and redirects() are not supported by `output: "export"`.
|
|
// Security headers are applied by Cloudflare Pages via public/_headers, and
|
|
// the legacy /admin -> /dashboard redirect is handled by public/_redirects.
|
|
}
|
|
|
|
export default nextConfig
|