补强静态发布安全边界

This commit is contained in:
2026-08-10 18:27:53 +08:00
parent 4df047708b
commit 8dd99c1855
15 changed files with 560 additions and 85 deletions

View File

@@ -221,7 +221,7 @@ describe('device preview Host API route', () => {
it('keeps the legacy runtime alias as a one-release fallback', async () => {
vi.stubGlobal('fetch', vi.fn().mockResolvedValueOnce(new Response(
JSON.stringify(matchingRemotePayload({
project: { play_url: null, runtime_url: '/apps/runtime-fallback/' },
project: { play_url: null, runtime_url: '/apps/planet-game/' },
})),
{ status: 200 },
)));
@@ -237,7 +237,7 @@ describe('device preview Host API route', () => {
expect(response.json()).toMatchObject({
preview: {
state: 'ready',
launchUrl: 'https://square.nianxx.cn/apps/runtime-fallback/',
launchUrl: 'https://square.nianxx.cn/apps/planet-game/',
},
});
});