fix the errors in dashboard

This commit is contained in:
root
2026-05-23 19:03:15 -04:00
parent c6cebdd125
commit f5292f8b6c
29 changed files with 1085 additions and 126 deletions
+6
View File
@@ -23,8 +23,14 @@ const storagePatterns = [
.filter(Boolean)
.filter((p, i, arr) => arr.findIndex((q) => q.hostname === p.hostname && q.port === p.port) === i)
// When the dashboard is accessed via the marketplace proxy (localhost:3000/dashboard),
// the browser resolves _next/static chunk URLs relative to localhost:3000 — but those
// chunks only exist on the dashboard's own server (localhost:3001). DASHBOARD_ASSET_PREFIX
// makes Next.js embed absolute chunk URLs so the browser fetches them from the right port.
// Set in .env.docker.dev; unset for local/production (where no cross-port proxy is used).
const nextConfig = {
basePath: '/dashboard',
...(process.env.DASHBOARD_ASSET_PREFIX ? { assetPrefix: process.env.DASHBOARD_ASSET_PREFIX } : {}),
images: {
remotePatterns: [
{