From 3cfbf595f2ff491969155af8815b6f307d5334c2 Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Sat, 23 Sep 2023 19:43:37 +0200 Subject: [PATCH] Update packages/next/src/build/webpack/plugins/flight-client-entry-plugin.ts --- .../src/build/webpack/plugins/flight-client-entry-plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/src/build/webpack/plugins/flight-client-entry-plugin.ts b/packages/next/src/build/webpack/plugins/flight-client-entry-plugin.ts index 561473df9402d..7927f2748752e 100644 --- a/packages/next/src/build/webpack/plugins/flight-client-entry-plugin.ts +++ b/packages/next/src/build/webpack/plugins/flight-client-entry-plugin.ts @@ -915,7 +915,7 @@ export class FlightClientEntryPlugin { assets[`${this.assetPrefix}${SERVER_REFERENCE_MANIFEST}.js`] = new sources.RawSource( - `self.__RSC_SERVER_MANIFEST=${json}` + `self.__RSC_SERVER_MANIFEST=${JSON.stringify(json)}` ) as unknown as webpack.sources.RawSource assets[`${this.assetPrefix}${SERVER_REFERENCE_MANIFEST}.json`] = new sources.RawSource(json) as unknown as webpack.sources.RawSource