File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1156,7 +1156,7 @@ export function vitePluginUseClient(
11561156
11571157/** @experimental */
11581158export function vitePluginDefineEncryptionKey (
1159- useServerPluginOptions : Pick < RscPluginOptions , 'defineEncryptionKey' > ,
1159+ useServerPluginOptions ? : Pick < RscPluginOptions , 'defineEncryptionKey' > ,
11601160) : Plugin [ ] {
11611161 let defineEncryptionKey : string
11621162 let emitEncryptionKey = false
@@ -1169,7 +1169,7 @@ export function vitePluginDefineEncryptionKey(
11691169 async configEnvironment ( name , _config , env ) {
11701170 if ( name === 'rsc' && ! env . isPreview ) {
11711171 defineEncryptionKey =
1172- useServerPluginOptions . defineEncryptionKey ??
1172+ useServerPluginOptions ? .defineEncryptionKey ??
11731173 JSON . stringify ( toBase64 ( await generateEncryptionKey ( ) ) )
11741174 }
11751175 } ,
You can’t perform that action at this time.
0 commit comments