fix the errors in dashboard
This commit is contained in:
@@ -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: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user