This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// SPDX-License-Identifier: LicenseRef-ConusAI-Template-1.0
|
||||
import { afterEach, expect, it, vi } from "vitest"
|
||||
|
||||
afterEach(() => {
|
||||
vi.unstubAllEnvs()
|
||||
vi.resetModules()
|
||||
})
|
||||
|
||||
it("keeps compiled chunk URLs stable when the platform injects a deployment asset prefix", async () => {
|
||||
// Compose serves the image's assets itself. Changing only the server's prefix at startup
|
||||
// leaves Turbopack waiting for chunk URLs that differ from those registered by the scripts.
|
||||
vi.stubEnv("CONUSAI_ASSET_PREFIX", "/_conusai/assets/app-42")
|
||||
vi.resetModules()
|
||||
const { default: config } = await import("../apps/web/next.config")
|
||||
expect(config.assetPrefix ?? "").toBe("")
|
||||
})
|
||||
Reference in New Issue
Block a user