Commit 461c2be1 by luoqi

fix(docs): assetPrefix '/docs' —— pac-docs 挂到 pac.jarvismedical.asia/docs 路径下

资源引用走 /docs/_next/*,避免与 pac-web 的 /_next 撞;仅生产生效。
nginx 侧加 /docs/、/docs/_next/(rewrite)、/api/search、/og/docs/、/llms 几条 location 兜到 3102。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
parent 1692fce9
Pipeline #3328 failed in 0 seconds
......@@ -7,6 +7,9 @@ const config = {
reactStrictMode: true,
// 容器化产物:Next 输出 standalone(.next/standalone + server.js),Dockerfile prod 阶段直接 node 它
output: 'standalone',
// 挂在宿主 pac.jarvismedical.asia/docs 路径下:让静态资源引用走 /docs/_next/*(否则与 pac-web 的 /_next 撞)。
// 仅生产生效(本地 dev 不加前缀,正常调试);nginx 把 /docs/_next/* rewrite 回 /_next/* 转发到本服务。
assetPrefix: process.env.NODE_ENV === 'production' ? '/docs' : undefined,
// 没有营销首页 / 文档首页 —— 根路径直接进文档,/docs 再进第一篇内容
async redirects() {
return [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment