Skip to content

Commit d46b0df

Browse files
committed
tweak
1 parent d51d399 commit d46b0df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/plugin-rsc/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,17 +353,17 @@ export default defineConfig({
353353
// this behavior can be customized by `serverHandler` option.
354354
serverHandler: false,
355355

356+
// this controls build-time validation of 'server-only' and 'client-only' imports.
357+
// this is enabled by default.
358+
validateImports: true,
359+
356360
// by default, the plugin uses a build-time generated encryption key for
357361
// "use server" closure argument binding.
358362
// This can be overwritten by configuring `defineEncryptionKey` option,
359363
// for example, to obtain a key through environment variable during runtime.
360364
// cf. https://nextjs.org/docs/app/guides/data-security#overwriting-encryption-keys-advanced
361365
defineEncryptionKey: 'process.env.MY_ENCRYPTION_KEY',
362366

363-
// this controls build-time validation of 'client-only' and 'server-only' imports.
364-
// this is enabled by default.
365-
validateImports: true,
366-
367367
// when `loadModuleDevProxy: true`, `import.meta.viteRsc.loadModule` is implemented
368368
// through `fetch` based RPC, which allows, for example, rsc environment inside
369369
// cloudflare workers to communicate with node ssr environment on main Vite process.

0 commit comments

Comments
 (0)