Files
zeekay a648eaec80 refactor(dashboard): one chrome, from @luxfi/ui
The dashboard had its own header, its own user menu (components/layout/user-menu.tsx)
and its own branding table (lib/branding.ts) that mapped a hostname to a brand a
second time — a copy of what @luxfi/ui/white-label already answers, and one that
drifted (it had no bootno.de row and pointed zoo at the wrong issuer).

Both are deleted. The nav is now `AppNav` from @luxfi/ui: brand, org switcher,
links, settings and the user menu, with the links collapsing into the same gui
Sheet the switchers use instead of the old `hidden md:flex` that simply vanished
on a phone with nothing to replace it.

Identity comes from IdentityProvider (IAM: get-account / get-organizations /
get-organization-projects). Credentials stay with @hanzo/iam — one PKCE flow and
one token store per surface; the chrome borrows only signIn and signOut.

`next build` passes: 60 routes.
2026-07-27 14:42:56 -07:00

30 lines
753 B
JavaScript

const { withLuxUi } = require('@luxfi/ui/next')
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
experimental: {
typedRoutes: false,
},
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
async rewrites() {
if (process.env.NODE_ENV === 'production') return []
return [
{
source: '/v1/:path*',
destination: 'http://localhost:8081/v1/:path*',
},
]
},
}
// ONE incantation for the gui engine (transpile list, react-native-web alias,
// platform defines) — see @luxfi/ui/next. Hand-rolling it per surface is how
// two apps end up transpiling different halves of the same engine.
module.exports = withLuxUi(nextConfig)