feat(admin): wall-street-plaza admin panel on garden-roof, bound to admin-api
- New admin app apps/wall-street-plaza (port 7002) and platform platforms/garden-roof
(scope:admin), talking only to admin-api through the /api rewrite (decision 0061;
0062 and 0063 proposed).
- All J11 sections: beta health, verifications, analysts, invite codes, subscriptions,
predictions, payouts, featured; audit log, cross-section refresh, Persian-only errors.
- Admin login matches the uniform admin-api contract (one OTP_INVALID message, 429 wait,
local code check); reason hints say who reads each reason.
- island: DataTable, Pager, PersonSummary, TabLinks count, StatTile footer; tools:
exactDuration; market: subscription_extended/refunded notification icons.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 15:06:38 +00:00
|
|
|
import { withFontCopy } from '@lumina/island/tools/font-copy-plugin';
|
|
|
|
|
import { withIconSprite } from '@lumina/island/tools/icon-sprite-plugin';
|
|
|
|
|
import type { NextConfig } from 'next';
|
2026-10-17 09:58:30 +00:00
|
|
|
import path from 'node:path';
|
feat(admin): wall-street-plaza admin panel on garden-roof, bound to admin-api
- New admin app apps/wall-street-plaza (port 7002) and platform platforms/garden-roof
(scope:admin), talking only to admin-api through the /api rewrite (decision 0061;
0062 and 0063 proposed).
- All J11 sections: beta health, verifications, analysts, invite codes, subscriptions,
predictions, payouts, featured; audit log, cross-section refresh, Persian-only errors.
- Admin login matches the uniform admin-api contract (one OTP_INVALID message, 429 wait,
local code check); reason hints say who reads each reason.
- island: DataTable, Pager, PersonSummary, TabLinks count, StatTile footer; tools:
exactDuration; market: subscription_extended/refunded notification icons.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 15:06:38 +00:00
|
|
|
|
2026-10-17 09:58:30 +00:00
|
|
|
// Libs compile from source outside the app, so tracing and Turbopack both start at the workspace root.
|
|
|
|
|
const workspaceRoot = path.join(__dirname, '../..');
|
feat(admin): wall-street-plaza admin panel on garden-roof, bound to admin-api
- New admin app apps/wall-street-plaza (port 7002) and platform platforms/garden-roof
(scope:admin), talking only to admin-api through the /api rewrite (decision 0061;
0062 and 0063 proposed).
- All J11 sections: beta health, verifications, analysts, invite codes, subscriptions,
predictions, payouts, featured; audit log, cross-section refresh, Persian-only errors.
- Admin login matches the uniform admin-api contract (one OTP_INVALID message, 429 wait,
local code check); reason hints say who reads each reason.
- island: DataTable, Pager, PersonSummary, TabLinks count, StatTile footer; tools:
exactDuration; market: subscription_extended/refunded notification icons.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 15:06:38 +00:00
|
|
|
|
|
|
|
|
// Fonts and the icon sprite keep fixed names (0011, 0012); Next serves public/ with max-age=0.
|
|
|
|
|
const immutable = [
|
|
|
|
|
{ key: 'Cache-Control', value: 'public, max-age=31536000, immutable' },
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
// The panel is never framed, never indexed, and never sends full URLs to other sites.
|
|
|
|
|
const security = [
|
|
|
|
|
{ key: 'Content-Security-Policy', value: "frame-ancestors 'none'" },
|
|
|
|
|
{ key: 'X-Frame-Options', value: 'DENY' },
|
|
|
|
|
{ key: 'X-Content-Type-Options', value: 'nosniff' },
|
|
|
|
|
{ key: 'Referrer-Policy', value: 'same-origin' },
|
|
|
|
|
{ key: 'X-Robots-Tag', value: 'noindex, nofollow' },
|
|
|
|
|
];
|
|
|
|
|
|
2026-10-17 09:58:30 +00:00
|
|
|
// The edge nginx (0001) passes a streamed page on as each part renders instead of buffering it whole.
|
|
|
|
|
const streaming = [{ key: 'X-Accel-Buffering', value: 'no' }];
|
|
|
|
|
|
feat(admin): wall-street-plaza admin panel on garden-roof, bound to admin-api
- New admin app apps/wall-street-plaza (port 7002) and platform platforms/garden-roof
(scope:admin), talking only to admin-api through the /api rewrite (decision 0061;
0062 and 0063 proposed).
- All J11 sections: beta health, verifications, analysts, invite codes, subscriptions,
predictions, payouts, featured; audit log, cross-section refresh, Persian-only errors.
- Admin login matches the uniform admin-api contract (one OTP_INVALID message, 429 wait,
local code check); reason hints say who reads each reason.
- island: DataTable, Pager, PersonSummary, TabLinks count, StatTile footer; tools:
exactDuration; market: subscription_extended/refunded notification icons.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 15:06:38 +00:00
|
|
|
const nextConfig: NextConfig = {
|
2026-10-17 09:58:30 +00:00
|
|
|
// The image runs .next/standalone/apps/<app>/server.js with only the traced files; it never loads
|
|
|
|
|
// this file at runtime, so the plugins below never run in the container.
|
|
|
|
|
output: 'standalone',
|
|
|
|
|
outputFileTracingRoot: workspaceRoot,
|
|
|
|
|
turbopack: { root: workspaceRoot },
|
|
|
|
|
poweredByHeader: false,
|
2026-10-15 10:36:00 +00:00
|
|
|
// Set when the panel shares an origin with the market apps under a path (e.g. `/admin`); empty
|
|
|
|
|
// in local dev, where the panel has its own port.
|
|
|
|
|
basePath: process.env.NEXT_BASE_PATH ?? '',
|
feat(admin): wall-street-plaza admin panel on garden-roof, bound to admin-api
- New admin app apps/wall-street-plaza (port 7002) and platform platforms/garden-roof
(scope:admin), talking only to admin-api through the /api rewrite (decision 0061;
0062 and 0063 proposed).
- All J11 sections: beta health, verifications, analysts, invite codes, subscriptions,
predictions, payouts, featured; audit log, cross-section refresh, Persian-only errors.
- Admin login matches the uniform admin-api contract (one OTP_INVALID message, 429 wait,
local code check); reason hints say who reads each reason.
- island: DataTable, Pager, PersonSummary, TabLinks count, StatTile footer; tools:
exactDuration; market: subscription_extended/refunded notification icons.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 15:06:38 +00:00
|
|
|
// Metadata always in <head> (0054).
|
|
|
|
|
htmlLimitedBots: /.*/,
|
|
|
|
|
// Workspace packages export TypeScript source, so Next.js compiles them.
|
|
|
|
|
transpilePackages: [
|
|
|
|
|
'@lumina/garden-roof',
|
|
|
|
|
'@lumina/integrations',
|
|
|
|
|
'@lumina/island',
|
|
|
|
|
'@lumina/libs',
|
|
|
|
|
'@lumina/tools',
|
|
|
|
|
],
|
2026-10-17 09:58:30 +00:00
|
|
|
// No service worker or manifest: the panel isn't installable (0062).
|
feat(admin): wall-street-plaza admin panel on garden-roof, bound to admin-api
- New admin app apps/wall-street-plaza (port 7002) and platform platforms/garden-roof
(scope:admin), talking only to admin-api through the /api rewrite (decision 0061;
0062 and 0063 proposed).
- All J11 sections: beta health, verifications, analysts, invite codes, subscriptions,
predictions, payouts, featured; audit log, cross-section refresh, Persian-only errors.
- Admin login matches the uniform admin-api contract (one OTP_INVALID message, 429 wait,
local code check); reason hints say who reads each reason.
- island: DataTable, Pager, PersonSummary, TabLinks count, StatTile footer; tools:
exactDuration; market: subscription_extended/refunded notification icons.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 15:06:38 +00:00
|
|
|
async headers() {
|
|
|
|
|
return [
|
2026-10-17 09:58:30 +00:00
|
|
|
{ source: '/:path*', headers: [...security, ...streaming] },
|
feat(admin): wall-street-plaza admin panel on garden-roof, bound to admin-api
- New admin app apps/wall-street-plaza (port 7002) and platform platforms/garden-roof
(scope:admin), talking only to admin-api through the /api rewrite (decision 0061;
0062 and 0063 proposed).
- All J11 sections: beta health, verifications, analysts, invite codes, subscriptions,
predictions, payouts, featured; audit log, cross-section refresh, Persian-only errors.
- Admin login matches the uniform admin-api contract (one OTP_INVALID message, 429 wait,
local code check); reason hints say who reads each reason.
- island: DataTable, Pager, PersonSummary, TabLinks count, StatTile footer; tools:
exactDuration; market: subscription_extended/refunded notification icons.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 15:06:38 +00:00
|
|
|
{ source: '/fonts/:path*', headers: immutable },
|
|
|
|
|
{ source: '/icons/:path*', headers: immutable },
|
|
|
|
|
];
|
|
|
|
|
},
|
|
|
|
|
async redirects() {
|
|
|
|
|
return [{ source: '/', destination: '/health', permanent: false }];
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// On next dev and next build, island's plugins write the fonts and icon sprite into public/
|
|
|
|
|
// under their fixed names, with no hash (0012).
|
|
|
|
|
export default withIconSprite(withFontCopy(nextConfig));
|