File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
packages/plugin-rsc/examples/basic/src Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1- import { revalidateCache } from '../../use-cache-runtime'
1+ import { revalidateCache } from '../../framework/ use-cache-runtime'
22
33export function TestUseCache ( ) {
44 return (
Original file line number Diff line number Diff line change @@ -11,7 +11,11 @@ export default async function handler(request: Request): Promise<Response> {
1111 </ >
1212 )
1313 const nonce = ! process . env . NO_CSP ? crypto . randomUUID ( ) : undefined
14- const response = await handleRequest ( { request, getRoot : ( ) => root } )
14+ const response = await handleRequest ( {
15+ request,
16+ getRoot : ( ) => root ,
17+ nonce,
18+ } )
1519 if ( nonce && response . headers . get ( 'content-type' ) ?. includes ( 'text/html' ) ) {
1620 response . headers . set (
1721 'content-security-policy' ,
You can’t perform that action at this time.
0 commit comments