silverwolf-x/project / packages /next /src /client /use-client-disallowed.ts
silverwolf-x's picture
download
raw
305 Bytes
const error = new Proxy(
{},
{
get(_target) {
throw new Error(
'Using Client Components is not allowed in this environment.'
)
},
}
)
export default new Proxy(
{},
{
get: (_target, p) => {
if (p === '__esModule') return true
return error
},
}
)

Xet Storage Details

Size:
305 Bytes
·
Xet hash:
924dd9ee1fe55193f7c65b78440c2b0955958f588ff280e7a100e67a5599d724

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.