File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -95,19 +95,26 @@ export type RscPluginOptions = {
95
95
96
96
/**
97
97
* This option allows customizing how client build copies assets from server build.
98
- * By default, all assets are copied, but frameworks might want to establish some convention
99
- * to tighten security based on this option.
98
+ * By default, all assets are copied, but frameworks can establish server asset convention
99
+ * to tighten security using this option.
100
100
*/
101
101
copyServerAssetsToClient ?: ( fileName : string ) => boolean
102
102
103
- defineEncryptionKey ?: string
104
-
105
103
/**
106
- * Allows enabling action closure encryption for debugging purpose.
104
+ * This option allows disabling action closure encryption for debugging purpose.
107
105
* @default true
108
106
*/
109
107
enableActionEncryption ?: boolean
110
108
109
+ /**
110
+ * By default, the plugin uses a build-time generated encryption key for
111
+ * "use server" closure argument binding.
112
+ * This can be overwritten by configuring `defineEncryptionKey` option,
113
+ * for example, to obtain a key through environment variable during runtime.
114
+ * cf. https://nextjs.org/docs/app/guides/data-security#overwriting-encryption-keys-advanced
115
+ */
116
+ defineEncryptionKey ?: string
117
+
111
118
/** Escape hatch for Waku's `allowServer` */
112
119
keepUseCientProxy ?: boolean
113
120
}
You can’t perform that action at this time.
0 commit comments