Skip to content

Commit e6a5d52

Browse files
committed
feat(rsc): support UserConfig.rsc: RscPluginOptions
1 parent 6e4dfa7 commit e6a5d52

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

packages/plugin-rsc/examples/starter-cf-single/vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,7 @@ export default defineConfig({
5555
// https://github.com/cloudflare/workers-sdk/blob/19e2aab1d68594c7289d0aa16474544919fd5b9b/packages/vite-plugin-cloudflare/src/index.ts#L183-L186
5656
buildApp: async () => {},
5757
},
58+
rsc: {
59+
serverHandler: false,
60+
},
5861
})

packages/plugin-rsc/types/index.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,11 @@ declare global {
1616
}
1717
}
1818

19+
declare module 'vite' {
20+
interface UserConfig {
21+
/** Options for `@vitejs/plugin-rsc` */
22+
rsc?: import('@vitejs/plugin-rsc').RscPluginOptions
23+
}
24+
}
25+
1926
export {}

0 commit comments

Comments
 (0)