This commit is contained in:
2026-04-12 01:02:14 +08:00
parent 509487f155
commit 9b053e302b
14085 changed files with 2680009 additions and 12 deletions

View File

@@ -0,0 +1,4 @@
throw new Error(
"This module cannot be imported from a Client Component module. " +
"It should only be used from a Server Component."
);

View File

@@ -0,0 +1,19 @@
{
"name": "server-only",
"description": "This is a marker package to indicate that a module can only be used in Server Components.",
"keywords": [
"react"
],
"version": "0.0.1",
"homepage": "https://reactjs.org/",
"bugs": "https://github.com/facebook/react/issues",
"license": "MIT",
"files": ["index.js", "empty.js"],
"main": "index.js",
"exports": {
".": {
"react-server": "./empty.js",
"default": "./index.js"
}
}
}