build(standalone): use pnpm hoisted
- Add frontend/.npmrc (node-linker=hoisted; public-hoist-pattern for @next/env, styled-jsx, @swc/helpers) - Keep explicit deps: styled-jsx, @swc/helpers, @next/env - Verified standalone starts without MODULE_NOT_FOUND
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
node-linker=hoisted
|
||||
public-hoist-pattern[]=@next/env
|
||||
public-hoist-pattern[]=styled-jsx
|
||||
public-hoist-pattern[]=@swc/helpers
|
||||
|
||||
@@ -22,7 +22,7 @@ const nextConfig = {
|
||||
},
|
||||
]
|
||||
},
|
||||
// 启用standalone输出模式,用于Docker部署
|
||||
// Enable standalone output to run without dev deps on server
|
||||
output: 'standalone',
|
||||
// 禁用telemetry
|
||||
experimental: {
|
||||
|
||||
@@ -44,6 +44,9 @@
|
||||
"react-intersection-observer": "^9.16.0",
|
||||
"remark-gfm": "^4.0.0",
|
||||
"sharp": "^0.33.5",
|
||||
"@swc/helpers": "^0.5.5",
|
||||
"@next/env": "^14.2.5",
|
||||
"styled-jsx": "^5.1.1",
|
||||
"socket.io-client": "^4.7.5",
|
||||
"tailwind-merge": "^2.4.0",
|
||||
"tailwindcss-animate": "^1.0.7",
|
||||
|
||||
Generated
+9
@@ -17,6 +17,9 @@ importers:
|
||||
'@mdx-js/react':
|
||||
specifier: ^3.1.0
|
||||
version: 3.1.0(@types/react@18.3.22)(react@18.3.1)
|
||||
'@next/env':
|
||||
specifier: ^14.2.5
|
||||
version: 14.2.5
|
||||
'@next/mdx':
|
||||
specifier: ^15.1.5
|
||||
version: 15.1.5(@mdx-js/loader@3.1.0(acorn@8.12.1))(@mdx-js/react@3.1.0(@types/react@18.3.22)(react@18.3.1))
|
||||
@@ -44,6 +47,9 @@ importers:
|
||||
'@radix-ui/react-tooltip':
|
||||
specifier: ^1.1.2
|
||||
version: 1.1.2(@types/react-dom@18.3.0)(@types/react@18.3.22)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@swc/helpers':
|
||||
specifier: ^0.5.5
|
||||
version: 0.5.5
|
||||
'@types/hast':
|
||||
specifier: ^3.0.4
|
||||
version: 3.0.4
|
||||
@@ -116,6 +122,9 @@ importers:
|
||||
socket.io-client:
|
||||
specifier: ^4.7.5
|
||||
version: 4.7.5
|
||||
styled-jsx:
|
||||
specifier: ^5.1.1
|
||||
version: 5.1.1(react@18.3.1)
|
||||
tailwind-merge:
|
||||
specifier: ^2.4.0
|
||||
version: 2.4.0
|
||||
|
||||
Reference in New Issue
Block a user