File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -353,17 +353,17 @@ export default defineConfig({
353
353
// this behavior can be customized by `serverHandler` option.
354
354
serverHandler: false ,
355
355
356
+ // this controls build-time validation of 'server-only' and 'client-only' imports.
357
+ // this is enabled by default.
358
+ validateImports: true ,
359
+
356
360
// by default, the plugin uses a build-time generated encryption key for
357
361
// "use server" closure argument binding.
358
362
// This can be overwritten by configuring `defineEncryptionKey` option,
359
363
// for example, to obtain a key through environment variable during runtime.
360
364
// cf. https://nextjs.org/docs/app/guides/data-security#overwriting-encryption-keys-advanced
361
365
defineEncryptionKey: ' process.env.MY_ENCRYPTION_KEY' ,
362
366
363
- // this controls build-time validation of 'client-only' and 'server-only' imports.
364
- // this is enabled by default.
365
- validateImports: true ,
366
-
367
367
// when `loadModuleDevProxy: true`, `import.meta.viteRsc.loadModule` is implemented
368
368
// through `fetch` based RPC, which allows, for example, rsc environment inside
369
369
// cloudflare workers to communicate with node ssr environment on main Vite process.
You can’t perform that action at this time.
0 commit comments