fix signin signout and apply the new style
This commit is contained in:
@@ -23,14 +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).
|
||||
// In Docker dev the dashboard app runs on port 3001 while the marketplace proxy
|
||||
// is served from port 3000. When DASHBOARD_ASSET_PREFIX is set, Next should emit
|
||||
// absolute chunk URLs so /dashboard pages load their own JS/CSS from port 3001.
|
||||
const assetPrefix = process.env.DASHBOARD_ASSET_PREFIX || undefined
|
||||
|
||||
const nextConfig = {
|
||||
basePath: '/dashboard',
|
||||
...(process.env.DASHBOARD_ASSET_PREFIX ? { assetPrefix: process.env.DASHBOARD_ASSET_PREFIX } : {}),
|
||||
...(assetPrefix ? { assetPrefix } : {}),
|
||||
images: {
|
||||
remotePatterns: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user