{
  "version": "https://jsonfeed.org/version/1", 
  "title": "Next.js", 
  "description": "", 
  "home_page_url": "https://www.v2ex.com/go/nextjs", 
  "feed_url": "https://www.v2ex.com/feed/nextjs.json", 
  "icon": "https://cdn.v2ex.com/navatar/d672/3e7c/1095_large.png?m=1747088631", 
  "favicon": "https://cdn.v2ex.com/navatar/d672/3e7c/1095_normal.png?m=1747088631", 
  "items": [
    {
      "author": {
        "url": "https://www.v2ex.com/member/rocmax", 
        "name": "rocmax", 
        "avatar": "https://cdn.v2ex.com/gravatar/34078d8614bf9197df6c6de09dfc8e58?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1186076", 
      "title": "vercel \u516c\u5e03 React Best Practices skills", 
      "id": "https://www.v2ex.com/t/1186076", 
      "date_published": "2026-01-16T00:17:20+00:00", 
      "content_html": "<p>\u603b\u7ed3\u4e86 10 \u5e74\u4ee5\u4e0a\u7684 react nextjs \u5f00\u53d1\u7ecf\u9a8c\n<a href=\"https://vercel.com/blog/introducing-react-best-practices\" rel=\"nofollow\">https://vercel.com/blog/introducing-react-best-practices</a></p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/elza", 
        "name": "elza", 
        "avatar": "https://cdn.v2ex.com/gravatar/54933f3ecb4183f6a6c001ca4793810f?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1183566", 
      "title": "\u6c42\u52a9\u5728\u672c\u5730\u73af\u5883 nextjs \u5f00\u53d1\uff0c localstorage \u503c\u88ab\u6e05\u9664\u4e86\u95ee\u9898", 
      "id": "https://www.v2ex.com/t/1183566", 
      "date_published": "2026-01-06T09:59:31+00:00", 
      "content_html": "<p>\u5982\u9898</p>\n<pre><code>import { create } from 'zustand';\nimport { createJSONStorage, persist } from 'zustand/middleware';\nimport type { UserInfo } from '@/service/user';\nimport { UserToken } from '@/interfaces/interfaces';\n\ninterface AuthState {\n  accessToken: string | null;\n  refreshToken: string | null;\n  setTokens: (token: UserToken) =&gt; void;\n  setIsHydrating: (value: boolean) =&gt; void;\n}\n\nexport const useAuthStore = create&lt;AuthState&gt;()(\n  persist(\n    (set) =&gt; ({\n      accessToken: null,\n      refreshToken: null,\n      setTokens: (token: UserToken) =&gt; set({ accessToken: token.accessToken, refreshToken: token.refreshToken }),\n      setIsHydrating: (value) =&gt; set({ isHydrating: value })\n    }),\n    {\n      name: 'auth-storage', // localStorage key\n      onRehydrateStorage: () =&gt; (state) =&gt; {\n        if (state) {\n          console.log('rehydrated auth state:', state);\n          state.setIsHydrating(false);\n        }\n      },\n      storage: createJSONStorage(() =&gt; localStorage)\n    }\n  )\n);\n</code></pre>\n<p>\u5728\u7528\u6237\u767b\u5f55\u540e\u901a\u8fc7 zustand \u7684\u65b9\u5f0f\u628a token \u4fe1\u606f\u5b58\u50a8 localStorage \u4e2d\uff0c\u4f46\u5728\u672c\u5730\u8fc7\u4e00\u6bb5\u65f6\u95f4\u6216\u8005\u4ee3\u7801\u7ed3\u6784\u8c03\u6574\uff0c\u4f1a\u53d1\u73b0\u4e4b\u524d localStorage \u5b58\u50a8\u7684\u503c\u7a81\u7136\u6ca1\u4e86\uff0c\u88ab\u6e05\u7a7a\u4e86\uff0c\u53d8\u6210\u4e86\u5982\u4e0b\u5185\u5bb9\uff1a</p>\n<p>{\"state\":{\"accessToken\":null,\"refreshToken\":null,\"isHydrating\":false},\"version\":0}</p>\n<p>\u53ef\u4ee5\u80af\u5b9a\u4ee3\u7801\u91cc\u6ca1\u6709\u4efb\u4f55 localStorage \u7684 clear \u64cd\u4f5c\u3002</p>\n<p>\u8fd9\u4e2a\u95ee\u9898\u611f\u5230\u5f88\u7591\u60d1\uff0c\u6709\u95ee\u8fc7 GPT \uff0c\u5b83\u7ed9\u6211\u7684\u56de\u590d\u662f\u56e0\u4e3a nextjs \u91cd\u65b0 rebuild \u5bfc\u81f4 localStorage \u503c\u6e05\u7a7a\uff0c\u7136\u540e export const useAuthStore = create&lt;AuthState&gt;() \u4ee3\u7801\u88ab\u91cd\u65b0\u6267\u884c\u3002</p>\n<p>\u5bf9\u8fd9\u4e2a\u7b54\u6848\u4fdd\u6301\u6000\u7591\uff0c\u662f\u8fd9\u4e2a\u539f\u56e0\u5bfc\u81f4\u7684\u5417\uff0c\u8fd8\u662f\u5176\u4ed6\u95ee\u9898\uff1f\u600e\u4e48\u89e3\u51b3</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/ethusdt", 
        "name": "ethusdt", 
        "avatar": "https://cdn.v2ex.com/avatar/e7d0/b1a7/254353_large.png?m=1772793943"
      }, 
      "url": "https://www.v2ex.com/t/1182359", 
      "date_modified": "2026-01-02T00:41:20+00:00", 
      "content_html": "<p><a href=\"https://nextjs.org/docs/app/getting-started/deploying\" rel=\"nofollow\">\u5b98\u65b9\u6587\u6863 Nextjs Deploying</a></p>\n<p>\u7528 nextjs \u90e8\u7f72\u5230\u81ea\u5df1\u670d\u52a1\u5668\u6709\u70b9\u9ebb\u70e6\u7684\uff0c\u5fc5\u987b\u90e8\u7f72\u5230 vercel \u8fd9\u79cd serverless \u624d\u65b9\u4fbf\u3002</p>\n<p>\u6211\u4f7f\u7528\u8fc7\u7b28\u529e\u6cd5\uff0c\u5728\u670d\u52a1\u5668\u4e0a\u514b\u9686\u6574\u4e2a\u9879\u76ee\uff0c\u670d\u52a1\u5668\u6267\u884c build \uff0c\u7136\u540e start \uff08 tmux/screen/systemctl \uff09\u3002</p>\n<p>\u6216\u8005\u9ebb\u70e6\u4e00\u70b9\u7528 docker \u6253\u5305\u4e00\u4e2a\u955c\u50cf\uff0c\u914d\u7f6e github action \u7684 ci \uff0c\u67d0\u4e2a\u6253\u5305\u5206\u652f\u6709\u63d0\u4ea4\u4f1a\u81ea\u52a8\u6253\u5305\u955c\u50cf\uff0c\u670d\u52a1\u5668\u518d pull \u955c\u50cf\u5c31\u6bd4\u8f83\u65b9\u4fbf\u4e86\u3002\u4f46\u8fd8\u662f\u8981\u6298\u817e\u4e00\u4e0b ci \u548c docker \u3002</p>\n<p>\u6216\u8005\u81ea\u5df1\u672c\u5730\u6253\u5305\u540e rsync \u5230\u670d\u52a1\u5668\uff0c\u4f46\u8981\u8e29\u4e00\u4e0b standalone \u4e4b\u7c7b\u7684\u5751\uff08 node runtime \u4f9d\u8d56 node_modules \uff09\u3002</p>\n<p>\u96be\u9053\u5c31\u6ca1\u4f18\u96c5\u4e00\u70b9\u7684\u4e48\uff1f</p>\n<p>web \u9875\u9762\u548c server api \u90fd\u5728\u4e00\u5757\u786e\u5b9e\u597d\u7528\uff0c\u5bf9\u524d\u7aef\u5165\u95e8\u540e\u7aef\u6765\u8bb2\u4e5f\u7b97\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002</p>\n", 
      "date_published": "2025-12-31T03:00:57+00:00", 
      "title": "nextjs \u6709\u66f4\u4f18\u96c5\u7684\u81ea\u90e8\u7f72\u65b9\u6848\u4e48\uff1f", 
      "id": "https://www.v2ex.com/t/1182359"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/xiaoyaowyz", 
        "name": "xiaoyaowyz", 
        "avatar": "https://cdn.v2ex.com/avatar/6363/0cae/402435_large.png?m=1765853937"
      }, 
      "url": "https://www.v2ex.com/t/1181403", 
      "date_modified": "2025-12-26T14:49:34+00:00", 
      "content_html": "\u5404\u4f4d V \u53cb\u597d\uff01<br /><br />\u4eca\u5e74\u624d\u5f00\u59cb\u63a5\u89e6 Web \u5f00\u53d1\uff0c\u4ee3\u7801\u5c0f\u767d\u4e00\u679a\u3002<br />\u7528 Next.js \u6413\u4e86\u4e00\u4e2a\u7f51\u7ad9\uff1a <a target=\"_blank\" href=\"https://textideo.com/\" rel=\"nofollow noopener\">https://textideo.com/</a> \u3002<br /><br />\u76ee\u524d\u529f\u80fd\u5927\u4f53\u4e0a\u8dd1\u901a\u4e86\uff0c\u4f46\u6709\u4e00\u4e2a\u8ba9\u6211\u5f88\u5934\u75bc\u7684\u95ee\u9898\uff1a<br /><br />\u9996\u9875\u7684\u54cd\u5e94\u548c\u52a0\u8f7d\u901f\u5ea6\u611f\u89c9\u5f88\u6162\u3002\u5c24\u5176\u662f\u7b2c\u4e00\u6b21\u6253\u5f00\u7684\u65f6\u5019\uff0c\u611f\u89c9\u8981\u8f6c\u597d\u51e0\u79d2\u3002\uff08\u8fd9\u5bf9\u4e00\u4e2a\u52a8\u6001\u89c6\u9891\u7c7b\u7f51\u7ad9\u592a\u4e0d\u53cb\u597d\u4e86\uff09<br /><br />\u6211\u5c1d\u8bd5\u4e86\u7f51\u4e0a\u80fd\u627e\u5230\u7684\u5e38\u89c4\u529e\u6cd5\uff08\u6bd4\u5982\u538b\u7f29\u56fe\u7247\u3001\u95ee AI \u4f18\u5316\u4ee3\u7801\u903b\u8f91\uff09\uff0c\u4f46\u6548\u679c\u90fd\u5f88\u4e00\u822c\u3002<br /><br />\u6211\u73b0\u5728\u6709\u70b9\u6478\u4e0d\u51c6\u65b9\u5411\uff0c\u4e0d\u77e5\u9053\u662f\u56e0\u4e3a Next.js \u7684 SSR \u6ca1\u914d\u7f6e\u597d\uff1f\u8fd8\u662f\u670d\u52a1\u5668\u6027\u80fd\u4e0d\u591f\uff1f\u4ea6\u6216\u662f\u524d\u7aef\u8d44\u6e90\u963b\u585e\u4e86\uff1f<br /><br />\u60f3\u8bf7\u5404\u4f4d\u5927\u4f6c\u5e2e\u5fd9\u70b9\u8fdb\u53bb\u770b\u770b\uff1a<br /><br />\u5e0c\u671b\u80fd\u6307\u70b9\u4e00\u4e0b\u8ff7\u6d25<br /><br />\u975e\u5e38\u611f\u8c22\u3002\u91c7\u7eb3\u6709\u7528\u7684\u5efa\u8bae\u4e5f\u53ef\u4ee5\u8d60\u9001\u79ef\u5206\uff0c\u6b63\u597d\u8ba9\u5404\u4f4d\u5927\u4f6c\u5e2e\u6211\u770b\u770b\u8fd8\u6709\u4ec0\u4e48\u4f18\u5316\u7684\u70b9\u548c bug \u9700\u8981\u4fee\u590d\uff01", 
      "date_published": "2025-12-26T07:24:29+00:00", 
      "title": "\u7528 Next.js \u5199\u4e86\u4e2a\u7ad9\uff0c\u9996\u9875\u52a0\u8f7d\u592a\u6162\u4e86\uff01\u59cb\u7ec8\u627e\u4e0d\u5230\u539f\u56e0", 
      "id": "https://www.v2ex.com/t/1181403"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/SeduceQAQ", 
        "name": "SeduceQAQ", 
        "avatar": "https://cdn.v2ex.com/avatar/c314/7a5d/604701_large.png?m=1739436837"
      }, 
      "url": "https://www.v2ex.com/t/1179125", 
      "title": "\u4f7f\u7528 Bun \u521b\u5efa\u9879\u76ee\u65f6\u5361\u4f4f", 
      "id": "https://www.v2ex.com/t/1179125", 
      "date_published": "2025-12-16T00:41:15+00:00", 
      "content_html": "windows+wsl<br />\u73af\u5883\u53d8\u91cf\u6709 http \u548c https proxy<br />\u8fd0\u884c bun create \u65f6\u5361\u4f4f,\u5de8\u6162\u65e0\u6bd4,\u5b89\u88c5 shadcn \u7684\u65f6\u5019\u4e5f\u5f88\u5361<br />\u7f51\u4e0a\u6709\u7c7b\u4f3c\u7684\u8bc4\u8bba\u8c8c\u4f3c\u662f\u73af\u5883\u53d8\u91cf\u914d\u4e86\u4ee3\u7406 bun \u5c31\u4e0d\u80fd\u7528<br />\u8bd5\u4e86\u5982\u4e0b\u7684\u65b9\u6848\u6ca1\u7528<br />1. .bunfig.toml: \u6587\u4ef6\u5939\u4e0d\u4e3a\u7a7a\u65f6\u6839\u672c\u65e0\u6cd5\u521d\u59cb\u5316\u9879\u76ee<br />2. \u8bbe\u7f6e no_proxy=npmjs,\u4e0d\u751f\u6548,\u5207\u6362\u76f4\u8fde,\u5168\u5c40,tun,\u5b8c\u5168\u6ca1\u6548\u679c<br />3. \u751a\u81f3\u5220\u9664\u6389\u73af\u5883\u53d8\u91cf\u7684\u4ee3\u7406\u4e5f\u5b89\u88c5\u4e0d\u4e86<br /><br />\u5df2\u7ecf\u88ab\u6574\u7ea2\u6e29\u4e86,\u6709\u5565\u597d\u529e\u6cd5\u5417..."
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/avenger", 
        "name": "avenger", 
        "avatar": "https://cdn.v2ex.com/avatar/7d80/6ddd/12998_large.png?m=1756303136"
      }, 
      "url": "https://www.v2ex.com/t/1177320", 
      "date_modified": "2025-12-06T23:41:19+00:00", 
      "content_html": "<h2>Affected Next.js Versions</h2>\n<pre><code>npm install next@15.0.5   # for 15.0.x\nnpm install next@15.1.9   # for 15.1.x\nnpm install next@15.2.6   # for 15.2.x\nnpm install next@15.3.6   # for 15.3.x\nnpm install next@15.4.8   # for 15.4.x\nnpm install next@15.5.7   # for 15.5.x\nnpm install next@16.0.7   # for 16.0.x\n \nnpm install next@15.6.0-canary.58   # for 15.x canary releases\nnpm install next@16.1.0-canary.12   # for 16.x canary releases\n</code></pre>\n<p>\u5b98\u65b9 blog</p>\n<p><a href=\"https://nextjs.org/blog/CVE-2025-66478\" rel=\"nofollow\">https://nextjs.org/blog/CVE-2025-66478</a></p>\n<p>\u4f1a\u5f71\u54cd\u6240\u6709\u7528\u4e86 React Server Components (RSC) \u7684\u6846\u67b6\uff0c\u5141\u8bb8\u8fdc\u7a0b\u6267\u884c\u4efb\u610f\u4ee3\u7801\uff0c\u5b98\u65b9\u5b9a\u7ea7\u4e3a 10 \u5206\uff0c\u9700\u8981\u9a6c\u4e0a\u4fee\u590d\u3002</p>\n", 
      "date_published": "2025-12-06T23:39:32+00:00", 
      "title": "Security Advisory: CVE-2025-66478 Next.js \u9ad8\u5371\u6f0f\u6d1e\uff0c\u5efa\u8bae\u5927\u5bb6\u9a6c\u4e0a\u5347\u7ea7\u5230\u6700\u65b0\u7248\uff0c\u5f71\u54cd 15\uff5e 16 \u6240\u6709\u7248\u672c", 
      "id": "https://www.v2ex.com/t/1177320"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/hwhtj", 
        "name": "hwhtj", 
        "avatar": "https://cdn.v2ex.com/avatar/c7a8/558c/100031_large.png?m=1770429207"
      }, 
      "url": "https://www.v2ex.com/t/1176667", 
      "date_modified": "2025-12-03T07:56:37+00:00", 
      "content_html": "\u5982\u9898\uff0c\u5b9d\u5854\u9762\u677f\u5982\u4f55\u90e8\u7f72 next.js \u9879\u76ee<br />\u7279\u522b\u662f<br />\u542f\u52a8\u9009\u9879\u5e94\u8be5\u5982\u4f55 \u586b\u5199\uff0c\u81ea\u5b9a\u4e49\u542f\u52a8\u547d\u4ee4\u586b\u4ec0\u4e48\uff1f", 
      "date_published": "2025-12-03T07:55:48+00:00", 
      "title": "\u5b9d\u5854\u9762\u677f\u5982\u4f55\u90e8\u7f72 next.js \u9879\u76ee", 
      "id": "https://www.v2ex.com/t/1176667"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/bbbblue", 
        "name": "bbbblue", 
        "avatar": "https://cdn.v2ex.com/avatar/011e/b4b6/445357_large.png?m=1761491442"
      }, 
      "url": "https://www.v2ex.com/t/1173326", 
      "date_modified": "2025-11-19T03:59:22+00:00", 
      "content_html": "<p>\u4e4b\u524d\u6709\u4e2a nextjs \u642d\u7684\u7f51\u7ad9\uff0c\u81ea\u5df1 docker \u90e8\u7f72\u7684\uff0c\u535a\u5ba2\u90e8\u5206\u4e4b\u524d\u662f force-static \u8ba9 CDN \u7f13\u5b58\u7684,\u4e5f\u5c31\u51e0\u5341\u7bc7\uff0c\u4e0d\u591a\u3002</p>\n<p>\u770b\u5230 nextjs16 \u7684<code>cache component</code>\uff0c\u611f\u89c9\u4e0d\u9519\u5c31\u628a force-static \u53bb\u4e86\uff08\u6bd5\u7adf\u548c cache component \u4e0d\u517c\u5bb9\uff09\uff0c\u9875\u9762\u4e0a\u52a0\u4e86\u4e2a<code>use cache</code>\uff0c\u4e22\u4e0a\u53bb\u770b\u5230\u535a\u5ba2\u7684 cache-control \u5934\u6709 swr \uff0c\u5237\u65b0\u4e0b cf-cache \u4e5f hit \uff0c\u90a3\u6ca1\u5565\u95ee\u9898\uff0c\u5148\u8fd9\u6837\u5427\u3002</p>\n<p>\u8fd9\u4e2a\u670d\u52a1\u672c\u6765\u5185\u5b58\u5360\u7528\u5728 100M \u5de6\u53f3\uff0c\u7b26\u5408\u6211\u5bf9 node \u7684\u5c0f\u800c\u7f8e\u7684\u611f\u89c9\uff0c\u7136\u540e\u770b\u65c1\u8fb9\u7684 java \u670d\u52a1\uff0c300M \uff0cemmm \uff0c\u5347\u7ea7 jdk \u7248\u672c\u5230 21 \u4e4b\u540e\u7684\u786e\u5c0f\u4e86\u70b9\uff0c\u4f46\u548c node \u6bd4\u8fd8\u5dee\u4e00\u70b9\ud83d\ude02\u3002</p>\n<p>\u524d\u51e0\u5929\u4e0a\u53bb\u770b\u4e86\u4e00\u773c.... \u6c83\u65e5\uff0c600M \u4e86\u3002\u3002\u3002\u3002 \u3002\u3002\u3002\u3002\u5f00\u4e86<code>cache component</code>\uff0c\u7279\u4e48 600M \u4e86\uff1f\uff1f\uff1f\uff1f\uff1f\n\u7136\u540e\u770b\u5230 nextjs 16.0.3 \u7248\u672c\u66f4\u65b0\u4fee\u590d\u4e86\u4e00\u4e2a\u5c0f\u7684\u5185\u5b58\u6cc4\u9732\uff0c\u5728\u60f3\uff0c\u679c\u7136\u662f\u6cc4\u9732\u4e86\uff0c\u600e\u4e48\u53ef\u80fd 600M \u561b\u3002\n\u5347\u7ea7\u6253\u5305\u91cd\u65b0\u90e8\u7f72\uff0c\u7b2c\u4e8c\u5929\u4e00\u770b 400M???</p>\n<p>\u7a81\u7136\u611f\u89c9\u65c1\u8fb9\u7684 java \u670d\u52a1\u4e5f\u7709\u6e05\u76ee\u79c0\u4e86\u8d77\u6765\u3002</p>\n<p>\u5173\u6389\u4e86 cache component \uff0c\u53bb\u6389<code>use cache</code>,\u8dd1\u4e86\u51e0\u5929\u89c2\u5bdf\u90fd\u5728 100 \u591a M \u5de6\u53f3\u3002</p>\n<p>\u4e00\u4e2a\u4e3b\u8981\u662f\u535a\u5ba2\u7684\u670d\u52a1\u80fd\u8dd1\u5230 600M \uff0c\u8fd9\u8fd8\u662f node \u561b\u3002\u5751\u7239\u554a\u3002</p>\n<p>\uff08\u4e0d\u8fc7\u8fd9\u4e3b\u8981\u662f nextjs \u7684\u95ee\u9898\uff0c\u548c node \u5173\u7cfb\u4e0d\u5927...</p>\n", 
      "date_published": "2025-11-17T08:12:40+00:00", 
      "title": "nextjs16 \u7684 cache component \u6709\u70b9\u6253\u788e\u6211\u5bf9 node \u670d\u52a1\u5c0f\u800c\u7f8e\u7684\u5370\u8c61", 
      "id": "https://www.v2ex.com/t/1173326"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/MRlaopeng", 
        "name": "MRlaopeng", 
        "avatar": "https://cdn.v2ex.com/gravatar/e915aefc606d734635fad82f240a5455?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1170631", 
      "date_modified": "2025-11-05T04:28:38+00:00", 
      "content_html": "<p>\u73b0\u5728\u6709\u4e00\u4e2a 100w \u9875\u9762 html \u7684\u9700\u6c42\n\u6211\u4e4b\u524d\u5728\u60f3\u7528 hugo \u505a\u7684, \u4f46\u662f AI \u5374\u548c\u6211\u8bf4, hugo \u5728\u6bcf\u6b21\u4fee\u6539\u4e4b\u540e\u90fd\u9700\u8981\u8fdb\u884c\u5168\u91cf\u751f\u6210\u5168\u90e8\u7f51\u9875,\u8fd9\u6837\u7684\u5bf9\u4e8e\u5de5\u7a0b\u5316\u4e0d\u53cb\u597d\n\u7136\u540e\u6211\u5c31\u60f3\u522b\u7684\u65b9\u6cd5, \u770b\u5230\u4e3b\u6d41\u505a seo \u7684\u65b9\u6848\u90fd\u662f next.js\n\u4ed6\u5bf9\u4e8e\u5927\u91cf\u7f51\u9875\u7684\u60c5\u51b5\u4f1a\u5b58\u5728\u54ea\u4e9b\u6027\u80fd\u95ee\u9898\u5462?</p>\n", 
      "date_published": "2025-11-05T03:24:21+00:00", 
      "title": "next.js \u5bf9\u4e8e\u5927\u91cf\u9875\u9762\u7684\u6027\u80fd\u771f\u7684\u5f88\u5dee\u5417,\u6bd4\u5982\u6253\u5305\u5f88\u6162?", 
      "id": "https://www.v2ex.com/t/1170631"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/avenger", 
        "name": "avenger", 
        "avatar": "https://cdn.v2ex.com/avatar/7d80/6ddd/12998_large.png?m=1756303136"
      }, 
      "url": "https://www.v2ex.com/t/1155386", 
      "date_modified": "2025-08-27T14:06:41+00:00", 
      "content_html": "<p>Next.js 15.3.1 \u7248\u672c\u4e2d\u5f15\u5165\u4e86\u4e00\u4e2a\u6027\u80fd\u4f18\u5316\u529f\u80fd\u2014\u2014\"\u6d41\u5f0f\u5143\u6570\u636e\"\uff08 streaming metadata \uff09\uff0c\u4f46\u8fd9\u4e2a\u4f18\u5316\u5e26\u6765\u4e86\u4e25\u91cd\u7684 SEO \u95ee\u9898\u3002\u5143\u6570\u636e\u6807\u7b7e\uff08\u5982 <code>&lt;title&gt;</code>, <code>&lt;meta&gt;</code>, <code>&lt;link&gt;</code>\uff09\u88ab\u6e32\u67d3\u5728 <code>&lt;body&gt;</code> \u4e2d\u800c\u4e0d\u662f <code>&lt;head&gt;</code> \u4e2d\u3002</p>\n<p>\u793e\u533a\u4e2d\u5bf9\u8fd9\u4e2a\u6539\u52a8\u610f\u89c1\u5f88\u5927\uff0c\u4f46\u662f\u5b98\u65b9\u6682\u65f6\u6ca1\u6709\u4fee\u590d\u7684\u6253\u7b97\u3002</p>\n<h2>\u5f71\u54cd\u8303\u56f4</h2>\n<ul>\n<li><strong>Lighthouse SEO \u8bc4\u5206</strong>\uff1a\u76f4\u63a5\u68c0\u6d4b\u5931\u8d25\uff0c\u56e0\u4e3a Lighthouse \u660e\u786e\u68c0\u67e5 <code>&lt;head&gt;</code> \u4e2d\u7684\u5143\u6570\u636e</li>\n<li><strong>Google Search Console</strong>\uff1a\u62a5\u544a \"Duplicate without user-selected canonical\" \u9519\u8bef</li>\n<li><strong>\u641c\u7d22\u5f15\u64ce\u722c\u866b</strong>\uff1a\u53ef\u80fd\u65e0\u6cd5\u6b63\u786e\u8bc6\u522b\u9875\u9762\u5143\u6570\u636e</li>\n<li><strong>\u793e\u4ea4\u5a92\u4f53\u5206\u4eab</strong>\uff1aOpen Graph \u6807\u7b7e\u53ef\u80fd\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c</li>\n</ul>\n<p>\u4e34\u65f6\u89e3\u51b3\u65b9\u6cd5\uff1a</p>\n<p>\u5728 <code>next.config.ts</code> \u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u914d\u7f6e\uff1a</p>\n<pre><code class=\"language-typescript\">const nextConfig = {\n  // \u5f3a\u5236\u6240\u6709\u7528\u6237\u4ee3\u7406\u63a5\u6536\u963b\u585e\u5f0f\u5143\u6570\u636e\n  htmlLimitedBots: /.*/, // \u8fd9\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u6240\u6709\u7528\u6237\u4ee3\u7406\n\n// \u5176\u4ed6\u914d\u7f6e...\n};\n</code></pre>\n<ul>\n<li>\u6216\u8005\u53ef\u4ee5\u9488\u5bf9\u7279\u5b9a\u722c\u866b\u8fdb\u884c\u914d\u7f6e\uff1a<code>/googlebot|bingbot|baiduspider/</code></li>\n</ul>\n<p>\u76f8\u5173\u8ba8\u8bba\u5728\uff1a <a href=\"https://github.com/vercel/next.js/issues/79313#issuecomment-2892288965\" rel=\"nofollow\">https://github.com/vercel/next.js/issues/79313#issuecomment-2892288965</a></p>\n<p>\u5b98\u65b9\u6587\u6863\u76f8\u5173\u8bf4\u660e\uff1a <a href=\"https://nextjs.org/docs/app/api-reference/functions/generate-metadata#streaming-metadata\" rel=\"nofollow\">https://nextjs.org/docs/app/api-reference/functions/generate-metadata#streaming-metadata</a></p>\n<p>--</p>\n<h2>\u5b9e\u9645\u6848\u4f8b</h2>\n<p>\u5728\u6211\u7684\u4f5b\u7ecf\u9879\u76ee\u4e2d\uff0c\u6dfb\u52a0\u6b64\u914d\u7f6e\u540e\uff1a</p>\n<ul>\n<li>Lighthouse SEO \u8bc4\u5206\u4ece 80+ \u63d0\u5347\u5230 100</li>\n<li>Google Search Console \u4e2d\u7684\u91cd\u590d\u89c4\u8303\u9519\u8bef\u6d88\u5931</li>\n</ul>\n<p>PS. \u5206\u4eab\u4e00\u4e2a Lighthouse \u5168\u6ee1\u5206\u7684\u5c0f\u5f69\u86cb</p>\n<p><img alt=\"\" class=\"embedded_image\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"https://i.v2ex.co/nwm34Ag8.jpeg\"/></p>\n<p>PS 2. \u6700\u8fd1\u7528 Next.js \u5728\u505a\u4e00\u4e2a AI \u9605\u8bfb\u4f5b\u7ecf\u7684\u7f51\u7ad9\uff0c\u6b22\u8fce\u5927\u5bb6\u4f53\u9a8c\uff1a</p>\n<p><a href=\"https://rushiwowen.co\" rel=\"nofollow\">https://rushiwowen.co</a></p>\n", 
      "date_published": "2025-08-27T14:05:02+00:00", 
      "title": "\u5206\u4eab Next.js 15.2 \u4e4b\u540e\u65b0\u7248\u672c\u7684\u4e00\u4e2a\u5751\uff0c\u53ef\u80fd\u4f1a\u5f71\u54cd\u4f60\u7684 SEO \u6536\u5f55", 
      "id": "https://www.v2ex.com/t/1155386"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/JingXiao", 
        "name": "JingXiao", 
        "avatar": "https://cdn.v2ex.com/avatar/5ec5/d570/70619_large.png?m=1704433380"
      }, 
      "url": "https://www.v2ex.com/t/1154800", 
      "title": "\u4e3a\u5565 nextjs \u7f16\u8bd1\u8fd9\u4e48\u6162\uff0c\u9664\u4e86\u52a0\u7269\u7406\u5185\u5b58\uff0c\u6709\u5565\u597d\u7684\u4f18\u5316\u5efa\u8bae\uff1f", 
      "id": "https://www.v2ex.com/t/1154800", 
      "date_published": "2025-08-25T08:08:05+00:00", 
      "content_html": "\u6700\u8fd1\u9879\u76ee\u5728\u9b54\u6539 dify \uff0c\u7528\u7684 nextjs \u6280\u672f\u6808\uff0c\u865a\u62df\u673a 8g \u5185\u5b58\u76f4\u63a5\u672c\u5730\u8dd1\u4e0d\u8d77\u6765\uff0c\u6240\u4ee5\u76ee\u524d\u53ea\u80fd\u76f2\u6253\u4ee3\u7801\u63d0\u4ea4 git \uff0c\u670d\u52a1\u5668\u7aef\u6253\u5305\u90e8\u7f72\u6d4b\u8bd5\u73af\u5883\u770b\u6548\u679c\u3002<br />\u4e3b\u8981\u81ea\u5df1\u672c\u5b50 mba m1 16G \u5185\u5b58\u62c9\u4e86 dify \u4ee3\u7801\u5b89\u88c5\u4e86\u76f8\u5173\u670d\u52a1\u672c\u5730\u8dd1\uff0c\u4e5f\u52c9\u5f3a\u8dd1\u8d77\u6765\uff0c\u7136\u540e\u5c31\u662f\u7f16\u8bd1\u5de8\u6162\u554a\uff0c\u6539\u4e2a\u4e1c\u897f\u8981\u597d\u4e45\u624d\u80fd\u7f16\u8bd1\u5b8c\u6210\uff0c\u4f46\u662f\u611f\u89c9\u9875\u9762\u5185\u5bb9\u4e5f\u4e0d\u590d\u6742\u554a\uff0c\u4e00\u822c\u6162\u4e5f\u5c31\u7b49\u51e0\u79d2\u70ed\u66f4\u65b0\uff0c\u8fd9\u4e2a\u8d77\u7801\u8981\u7b49\u5341\u51e0\u79d2\u3002<br /><br />nextjs13 \u7684\u65f6\u5019\u4e5f\u53bb\u5b66\u4e60\u8fc7\uff0c\u597d\u50cf\u4e5f\u6ca1\u8fd9\u4e48\u6162\uff0c\u73b0\u5728 app router \u6a21\u5f0f\u548b\u8fd9\u4e48\u6162\uff0c\u6709\u5565\u5efa\u8bae\u4e0d\uff0c\u611f\u89c9\u5f00\u53d1\u4f53\u9a8c\u597d\u5dee\u3002\u8c22\u8c22\u3002"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/fangyex", 
        "name": "fangyex", 
        "avatar": "https://cdn.v2ex.com/avatar/1a14/0421/678103_large.png?m=1763744073"
      }, 
      "url": "https://www.v2ex.com/t/1149355", 
      "date_modified": "2025-08-02T11:27:46+00:00", 
      "content_html": "<p>React/Nextjs \u65b0\u624b\uff0c\u5982\u9898</p>\n", 
      "date_published": "2025-08-01T09:54:39+00:00", 
      "title": "Next.js \u4e2d\u7528\u4ec0\u4e48\u6765\u7ba1\u7406\u5168\u5c40\u72b6\u6001\uff0c\u7c7b\u4f3c Vuex/Pinia ?", 
      "id": "https://www.v2ex.com/t/1149355"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/dream4ever", 
        "name": "dream4ever", 
        "avatar": "https://cdn.v2ex.com/avatar/14c3/2144/140551_large.png?m=1717855784"
      }, 
      "url": "https://www.v2ex.com/t/1146045", 
      "date_modified": "2025-07-18T23:52:40+00:00", 
      "content_html": "<p>\u73b0\u5728\u6709\u4e00\u4e2a\u9700\u6c42\uff0c\u5c31\u662f\u5728\u9875\u9762\u4e4b\u95f4\u8df3\u8f6c\u65f6\uff0c\u9700\u8981\u663e\u793a\u4e00\u4e2a\u8fdb\u5ea6\u6761\u544a\u77e5\u7528\u6237\u9875\u9762\u52a0\u8f7d\u8fdb\u5ea6\u3002</p>\n<p>\u95ee\u4e86 DeepSeek \uff0cGoogle \u4e5f\u67e5\u4e86\u67e5\uff0c\u90fd\u6ca1\u627e\u5230\u80fd\u83b7\u53d6\u5b9e\u9645\u52a0\u8f7d\u8fdb\u5ea6\u7684\u89e3\u51b3\u65b9\u6848\u3002</p>\n", 
      "date_published": "2025-07-18T02:56:19+00:00", 
      "title": "Next.js \u600e\u6837\u83b7\u53d6\u5f53\u524d\u9875\u9762\u7684\u52a0\u8f7d\u8fdb\u5ea6\uff1f", 
      "id": "https://www.v2ex.com/t/1146045"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Plumbiu", 
        "name": "Plumbiu", 
        "avatar": "https://cdn.v2ex.com/avatar/4e9e/abe2/631801_large.png?m=1747833367"
      }, 
      "url": "https://www.v2ex.com/t/1141320", 
      "date_modified": "2025-06-26T21:54:34+00:00", 
      "content_html": "<p>\u5148\u53e0\u4e2a\u7532\uff0c\u6211\u4e5f\u4e0d\u600e\u4e48\u559c\u6b22 Next.js \uff0c\u4f46\u662f\u4e00\u4e9b\u4e8b\u5b9e\u6027\u9519\u8bef\u770b\u5230\u4e5f\u662f\u633a\u5947\u602a\u7684\u3002</p>\n<p>\u6765\u4e86 V \u7ad9\uff0c\u89c1\u8fc7\u5410\u69fd Next.js \u7684\u89c2\u70b9\u6709\u4ee5\u4e0b\u51e0\u4e2a\uff1a</p>\n<h1>1. \u670d\u52a1\u7aef\u7ec4\u4ef6\u4e0d\u80fd\u7528 hooks</h1>\n<p>\u8fd9\u662f\u6700\u4ee4\u6211\u5947\u602a\u7684\u4e00\u4e2a\u70b9\uff0c\u670d\u52a1\u7aef\u80fd\u7528 hooks \u8fd8\u5f97\u4e86\uff0c\u662f\u60f3\u8ba9\u670d\u52a1\u7aef\u6709\u526f\u4f5c\u7528\u5417\u3002</p>\n<p>\u8fd9\u91cc\u8d34\u4e00\u53e5 V \u7ad9\u4e4b\u524d\u770b\u5230\u7684\u8bc4\u8bba\uff1a<strong>\u201c\u5728\u5ba2\u6237\u7aef\u6e32\u67d3\u65f6\uff0c\u4e00\u822c\u901a\u8fc7 <code>useEffect</code> \u6765\u83b7\u53d6\u6570\u636e\u3002\u800c\u5728\u670d\u52a1\u7aef\u6e32\u67d3\u65f6\uff0c\u6211\u4eec\u65e0\u6cd5\u4f7f\u7528 <code>useEffect</code>\uff0c\u8fd9\u4f7f\u5f97\u5728\u670d\u52a1\u7aef\u8bf7\u6c42\u6570\u636e\uff08\u4ee5\u53ca\u5176\u4ed6\u5f02\u6b65\u64cd\u4f5c\uff09\u6210\u4e3a\u4e86\u4e00\u4e2a\u95ee\u9898\u201d</strong>\u3002</p>\n<p>\u6709\u6ca1\u6709\u4e00\u79cd\u53ef\u80fd\uff0c\u670d\u52a1\u7aef\u7ec4\u4ef6\u76f4\u63a5 fetch \u5c31\u80fd\u83b7\u53d6\u6570\u636e\u4e86\u3002</p>\n<h1>2. use client \u8bbe\u8ba1\u6076\u5fc3</h1>\n<p>\u4e8b\u5b9e\u4e0a\uff0cNext.js \u53ef\u4ee5\u81ea\u52a8\u5224\u65ad\u5f53\u524d\u7ec4\u4ef6\u662f\u4e0d\u662f\u5ba2\u6237\u7aef\u7ec4\u4ef6\uff0c\u4f46\u8fd9\u5bf9\u5f00\u53d1\u8005\u6765\u8bf4\u4e0d\u662f\u663e\u6027\u7684\uff0cuse client \u53ef\u4ee5\u66f4\u597d\u544a\u8bc9\u4f60\uff0c\u8fd9\u4e2a\u7ec4\u4ef6\u662f\u5ba2\u6237\u7aef\u7ec4\u4ef6\u3002</p>\n<p>\uff08\u53e6\u5916\uff0c\u6709\u4eba\u8bf4 Astro \u7684 client:load \u597d\u7684\uff0c\u6211\u5c31\u7eb3\u95f7\u4e86\uff0c\u8fd9\u548c use client \u6709\u5565\u533a\u522b......\uff09</p>\n<blockquote>\n<p>\u4e0d\u8fc7 Astro \u7684\u9009\u62e9\u6027\u6c34\u548c\u6211\u89c9\u5f97\u633a\u597d\u7684\uff0c\u8fd9\u70b9\u6bd4 Next.js \u5f3a\u5f88\u591a\u3002</p>\n</blockquote>\n<p>\u76f4\u63a5\u8bf4\u53ef\u80fd\u4e0d\u660e\u767d\uff0c\u65e2\u7136 Next.js \u80fd\u505a\u5230\u81ea\u52a8\u5224\u65ad\u5f53\u524d\u7ec4\u4ef6\u662f\u4e0d\u662f\u5ba2\u6237\u7aef\u7ec4\u4ef6\uff0c\u90a3\u76f4\u63a5\u6807\u8bb0\u8fd9\u4e2a\u7ec4\u4ef6\u662f\u5ba2\u6237\u7aef\u7ec4\u4ef6\u4e0d\u5c31\u884c\u4e86\uff0c\u90a3\u5047\u8bbe\u6211\u6709\u4e2a\u7ec4\u4ef6 C\uff1a</p>\n<pre><code class=\"language-jsx\">function C() {\n\treturn &lt;div&gt;C \u7ec4\u4ef6&lt;/div&gt;\n}\n</code></pre>\n<p>\u5f88\u660e\u663e C \u662f\u4e00\u4e2a\u670d\u52a1\u7aef\u7ec4\u4ef6\uff0c\u81f3\u5c11\u53ef\u4ee5\u5f53\u6210\u4e00\u4e2a\u670d\u52a1\u7aef\u7ec4\u4ef6\uff0c\u5b83\u6ca1\u6709\u4efb\u4f55\u526f\u4f5c\u7528\uff0c\u4f60\u8fd8\u6709\u4e2a\u7ec4\u4ef6 A \uff08\u670d\u52a1\u7aef\u7ec4\u4ef6\uff09\u548c\u7ec4\u4ef6 B \uff08\u5ba2\u6237\u7aef\u7ec4\u4ef6\uff09\uff0c\u4e24\u4e2a\u7ec4\u4ef6\u90fd\u7528\u4e86 C \u7ec4\u4ef6\uff0cNext.js \u600e\u4e48\u5224\u65ad C \u7ec4\u4ef6\u8be5\u5982\u4f55\u6e32\u67d3\uff1f\u4f60\u7b2c\u4e00\u6b21\u63a5\u89e6 C \u7ec4\u4ef6\uff0c\u8981\u6c42\u4f60\u4ece\u670d\u52a1\u7aef\u83b7\u53d6\u6570\u636e\uff0c\u4f60\u662f\u5199 RSC \u8fd8\u662f\u5199 useState \u548c useEffect \uff1f</p>\n<h1>3. Remix \u7684 load \u66f4\u597d</h1>\n<p>\u6709\u6ca1\u6709\u4e00\u79cd\u53ef\u80fd\uff0cNext.js \u7684 page router \u7684 getServerSideProps \u51fd\u6570\u548c load \u4e00\u6837\u3002</p>\n<h1>4. RSC \u65e0\u6cd5\u5b9e\u73b0 oClick \u7b49\u4e8b\u4ef6</h1>\n<p>\u8981\u4e0d\u4f60\u53d1\u660e\u4e00\u4e2a\u670d\u52a1\u5668\uff0c\u80fd\u628a\u4f60\u6d4f\u89c8\u5668\u91cc\u7684\u5143\u7d20\u7ed1\u5b9a\u4e0a\u8fd9\u4e2a\u4e8b\u4ef6\u3002</p>\n<p>\u60f3\u8981\u7ed1\u5b9a\u5ba2\u6237\u7aef\u4e8b\u4ef6\uff0c\u8001\u8001\u5b9e\u5b9e\u5199 use client \u3002</p>\n<h1>5 ....</h1>\n<p>\u6b22\u8fce\u5927\u5bb6\u8865\u5145\u3002</p>\n<h1>\u6700\u540e</h1>\n<p>\u6211\u8ba4\u4e3a Next.js \u6700\u6076\u5fc3\u7684\u5730\u65b9\u5176\u5b9e\u662f\u5728\u4e8e\u56e2\u961f\u5341\u5206\u56fa\u6267\uff0c\u4f60\u5fc5\u987b\u9075\u7167\u5b83\u7684\u5199\u6cd5\uff0c\u6700\u660e\u663e\u7684\u4f8b\u5b50\u5c31\u662f\u4e4b\u524d\u7248\u672c\u7684 Next.js \u91cd\u5199\u4e86 fetch \uff0c\u9ed8\u8ba4 force-cache \u3002</p>\n<p>\u800c\u4e14 Next.js \u76f4\u63a5\u4f7f\u7528 React \u7684\u6700\u65b0\u4ee3\u7801\uff0c\u7a33\u5b9a\u6027\u6709\u5f85\u8003\u5bdf\uff08\u8fd9\u70b9\u53ef\u4ee5\u53c2\u7167 React19 Suspense \u53d8\u5316\uff0c\u56e0\u4e3a\u8fd9\u4e2a React19 \u5ef6\u8fdf\u53d1\u5e03\u6765\u7740\uff09\u3002</p>\n<p>\u53e6\u5916\uff0cNext.js \u672c\u8eab\u6027\u80fd\u6781\u5176\u4e4b\u5dee\uff0c\u56e2\u961f\u751a\u81f3\u6ca1\u6709\u610f\u8bc6\u5230\u8fd9\u70b9\uff0c\u6216\u8005\u610f\u8bc6\u5230\u4f46\u662f\u4e0d\u613f\u53bb\u505a\u4efb\u4f55\u4f18\u5316\uff0c\u53ea\u662f\u4e00\u5473\u5730\u4f18\u5316\u5f00\u53d1\u901f\u5ea6\u3002</p>\n<p>\u6700\u540e\uff0cNext.js \u7684\u4f7f\u7528\u573a\u666f\u53ef\u4ee5\u8bf4\u51e0\u4e4e\u6ca1\u6709\uff0c\u4e3a\u4e86\u9996\u5c4f\u52a0\u8f7d\u901f\u5ea6\uff0c\u4e0d\u597d\u610f\u601d Next.js \u592a\u6162\u4e86\uff0c\u89c1 <a href=\"https://github.com/eknkc/ssr-benchmark\" rel=\"nofollow\">https://github.com/eknkc/ssr-benchmark</a> \u3002\u4f60\u8bf4\u4e3a\u4e86 seo \uff0c\u4e2a\u4eba\u9879\u76ee\u6211\u80fd\u7406\u89e3\uff0c\u516c\u53f8\u9879\u76ee\u4e0d\u5982\u82b1\u70b9\u94b1\u6392\u540d\u7ade\u4ef7\uff0c\u6bd4\u7528 Next.js \u6210\u672c\u5c0f\u5f88\u591a\uff08\u4ec5\u9650\u56fd\u5185\uff09\u3002\u60f3\u4e86\u60f3\u4e5f\u5c31\u4e2a\u4eba\u535a\u5ba2\u3001\u4ea4\u4e92\u6027\u5c11\u7684\u9875\u9762\u80fd\u7528\u4e00\u4e0b\u4e86\u3002</p>\n", 
      "date_published": "2025-06-26T14:01:35+00:00", 
      "title": "\u53d1\u73b0\u5f88\u591a\u4eba\u4e0d\u4e86\u89e3 Next.js", 
      "id": "https://www.v2ex.com/t/1141320"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/u3u", 
        "name": "u3u", 
        "avatar": "https://cdn.v2ex.com/avatar/bca5/444b/205319_large.png?m=1748934526"
      }, 
      "url": "https://www.v2ex.com/t/1141028", 
      "date_modified": "2025-06-27T05:06:26+00:00", 
      "content_html": "<p><img alt=\"\" class=\"embedded_image\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"https://i.imgur.com/YUyxNrr.png\"/></p>\n", 
      "date_published": "2025-06-25T09:30:55+00:00", 
      "title": "Next.js \u771f\u7684\u662f\u8d8a\u6765\u8d8a\u96be\u7528\u4e86\uff0c\u4ec0\u4e48\u72d7\u5c41 use client\uff0c\u4e0d\u5982 Astro \u4e00\u6839\uff0c\u6709\u4ec0\u4e48\u8bdd\u8ddf\u6211\u7684\u5c9b\u5c7f\u8bf4\u53bb\u5427", 
      "id": "https://www.v2ex.com/t/1141028"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/sxszzhrrt", 
        "name": "sxszzhrrt", 
        "avatar": "https://cdn.v2ex.com/gravatar/23b764920ac763862cdf62a69d6e94cd?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1134558", 
      "date_modified": "2025-05-29T00:10:04+00:00", 
      "content_html": "RT \uff0c\u76ee\u524d\u6211\u4f1a\u7684\u662f VUE \u90a3\u4e00\u5957\uff0c\u60f3\u5b66\u4e60\u4e00\u4e0b Next.JS \uff08\u88ab\u670d\u52a1\u7aef\u6e32\u67d3\u505a\u5168\u6808\u5438\u5f15\u4e86\uff09\uff0c\u8bf7\u95ee\u5e94\u8be5\u524d\u7f6e\u5b66\u4e60\u4ec0\u4e48\u4e1c\u897f\uff1f\u9700\u8981\u5148\u5b66\u4e60 React \u5417\uff1f", 
      "date_published": "2025-05-27T02:15:21+00:00", 
      "title": "\u5b66\u4e60 Next.js \u9700\u8981\u5148\u5b66\u4e60\u4ec0\u4e48\uff1f", 
      "id": "https://www.v2ex.com/t/1134558"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/szuwl", 
        "name": "szuwl", 
        "avatar": "https://cdn.v2ex.com/avatar/1060/7918/344132_large.png?m=1744300536"
      }, 
      "url": "https://www.v2ex.com/t/1124607", 
      "date_modified": "2025-04-11T23:32:31+00:00", 
      "content_html": "<p>\u6211\u5199\u4e86\u4e00\u4e2a nextjs \u7684\u5168\u6808\u5e94\u7528\uff0c\u7528\u4e86 nextjs \u7684 Api Routing \u5e76\u4e14\u6709\u4e00\u4e2a\u9875\u9762\uff0c\u53ef\u4ee5\u6253\u5305\u6210 electron \u5e94\u7528\u5417\uff0c\u60f3\u6253\u5305\u540e\u76f4\u63a5\u8fd0\u884c\u5728\u672c\u5730\u3002</p>\n", 
      "date_published": "2025-04-10T15:58:26+00:00", 
      "title": "nextjs \u5168\u6808\u9879\u76ee\u53ef\u4ee5\u6253\u5305\u6210 Electron \u5417", 
      "id": "https://www.v2ex.com/t/1124607"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/getty123", 
        "name": "getty123", 
        "avatar": "https://cdn.v2ex.com/gravatar/167feba6ad0fab3f0a2c2c8a778032f5?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1122276", 
      "title": "\u672c\u5730\u5f00\u53d1 Next.js \u542f\u52a8\u9879\u76ee\u540e\u5361\u987f\u7684\u4e0d\u884c\uff0c\u6709\u4ec0\u4e48\u4f18\u5316\u7684\u7a7a\u95f4\u5417\uff08M1 8G\uff09", 
      "id": "https://www.v2ex.com/t/1122276", 
      "date_published": "2025-03-31T05:59:08+00:00", 
      "content_html": "<p>MacBoook Air M1 8G\n\u542f\u52a8\u65f6\u5185\u5b58\u5360\u7528 80%\u591a\uff0c\u7136\u540e\u5728\u5f00\u542f\u4e2a Chrome \u6bcf\u6b21\u5237\u65b0\u9875\u9762\u5361\u5f88\u4e45\n\u542f\u52a8\u542f\u7528 Turbopack \u66f4\u5361\u4e86\n\u8fd9\u4e2a\u9879\u76ee\u4f7f\u7528\u7684 monorepo,\u5f15\u7528\u8fc7\u5176\u4ed6\u6587\u4ef6\u5939\u4e2d\u7684\u5f88\u591a\u7ec4\u4ef6\n\u5404\u4f4d\u5927\u4f6c\u6709\u4ec0\u4e48\u4f18\u5316\u7684\u7a7a\u95f4\u5417\uff0c\u600e\u4e48\u4e0d\u5361\u5440</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/gneko", 
        "name": "gneko", 
        "avatar": "https://cdn.v2ex.com/avatar/553c/5c55/624005_large.png?m=1691376063"
      }, 
      "url": "https://www.v2ex.com/t/1121145", 
      "title": "\u4e00\u4e2a\u5947\u602a\u7684\u60f3\u6cd5\uff1a nextjs \u505a\u524d\u7aef+ssr\uff0c golang \u4f5c\u4e3a\u540e\u7aef\uff0c\u6709\u6ca1\u6709\u641e\u5934", 
      "id": "https://www.v2ex.com/t/1121145", 
      "date_published": "2025-03-26T03:05:50+00:00", 
      "content_html": "<p>\u5177\u4f53\u5b9e\u73b0\u65b9\u6848\u5927\u6982\u662f\uff1a</p>\n<p>nextjs \u548c golang(\u6216\u8005\u5176\u4ed6\u8bed\u8a00\u4e5f\u884c\uff09\u540e\u7aef\u5206\u522b\u662f\u4e24\u4e2a docker \uff0c\u7531 nginx \u5206\u53d1\uff0c/api/\u8bf7\u6c42\u8f6c\u53d1\u5230\u540e\u7aef\u4e0a\uff0c\u5176\u5b83\u8bf7\u6c42\u8f6c\u53d1\u7ed9 nextjs \u3002\u9700\u8981\u505a SSR \u7684\u90e8\u5206\uff0c\u7531 nextjs \u4f7f\u7528\u5185\u90e8\u901a\u4fe1\u8bbf\u95ee\u540e\u7aef\u3002</p>\n<p>\u600e\u4e48\u8bf4\u5462\uff0c\u5c31\u662f\u76f8\u5f53\u4e8e\u641e\u4e00\u4e2a\u9ad8\u6027\u80fd\u540e\u7aef\u7684\u540c\u65f6\uff0c\u8fd8\u80fd\u7528\u5230 nextjs \u7684\u7279\u6027\uff0c\u6bd4\u5982 SSR \u7b49\u3002</p>\n<hr/>\n<blockquote>\n<p>\uff08\u6709\u4e00\u79cd\u201c\u4e0d\u5982 PHP\u201d\u7684\u611f\u89c9\uff0c\u679c\u7136\u8fd8\u662f PHP \u5929\u4e0b\u7b2c\u4e00\u5417\uff1f\uff09</p>\n</blockquote>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/lavvrence", 
        "name": "lavvrence", 
        "avatar": "https://cdn.v2ex.com/avatar/7306/9194/170617_large.png?m=1774511369"
      }, 
      "url": "https://www.v2ex.com/t/1120374", 
      "title": "Next.js \u96f6\u65e5\u6f0f\u6d1e CVE-2025-29927 \u4e00\u4e2a\u8bf7\u6c42\u5934\u76f4\u63a5\u7ed5\u8fc7\u4e2d\u95f4\u4ef6", 
      "id": "https://www.v2ex.com/t/1120374", 
      "date_published": "2025-03-22T16:21:57+00:00", 
      "content_html": "<p><a href=\"https://github.com/advisories/GHSA-f82v-jwr5-mffw\" rel=\"nofollow\">https://github.com/advisories/GHSA-f82v-jwr5-mffw</a></p>\n<p>\u5c3d\u5feb\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u3002</p>\n<p>\u5982\u679c\u65e0\u6cd5\u77ed\u671f\u5185\u5347\u7ea7\uff0c\u62e6\u622a\u4e00\u5207 HTTP Header \u5305\u542b <code>x-middleware-subrequest</code> \u7684\u8bf7\u6c42\u3002</p>\n<p>\u53d7\u5f71\u54cd\u7684\u7248\u672c\uff1a</p>\n<pre><code>&gt;= 11.1.4, &lt;= 13.5.6\n&gt;= 14.0, &lt; 14.2.25\n&gt;= 15.0, &lt; 15.2.3\n</code></pre>\n<p>\u5b98\u65b9 Patch \u5b89\u5168\u7248\u672c\uff1a</p>\n<pre><code>14.2.25\n15.2.3\n</code></pre>\n<p>\u626b\u4e86\u4e00\u773c\u89e3\u51b3\u65b9\u6848\uff0c\u8fd9\u4e2a\u7ed9\u4e2d\u95f4\u4ef6\u7684\u767d\u540d\u5355\u8bf7\u6c42\u5934\u73b0\u5728\u6539\u6210\u4e86\u4e00\u4e2a\u968f\u673a\u7684 8 \u5b57\u8282 ID \uff0c\u6807\u8bc6\u4e2d\u95f4\u4ef6\u5b50\u8bf7\u6c42\u7684\u6765\u6e90\uff0c\u88ab\u6dfb\u52a0\u5230\u8bf7\u6c42\u5934 x-middleware-subrequest-id \u3002\u5982\u679c\u8bf7\u6c42\u5934\u4e2d\u7684 x-middleware-subrequest-id \u4e0e\u5168\u5c40\u5b58\u50a8\u7684 ID \u4e0d\u5339\u914d\uff0c\u5219\u5220\u9664 x-middleware-subrequest \u8bf7\u6c42\u5934\u3002\u6b64\u66f4\u6539\u786e\u4fdd\u4e86\u53ea\u6709\u6765\u81ea\u76f8\u540c\u4f1a\u8bdd\u7684\u5b50\u8bf7\u6c42\u624d\u4f1a\u88ab\u89c6\u4e3a\u4e2d\u95f4\u4ef6\u5b50\u8bf7\u6c42\u3002\n<a href=\"https://github.com/vercel/next.js/commit/52a078da3884efe6501613c7834a3d02a91676d2\" rel=\"nofollow\">https://github.com/vercel/next.js/commit/52a078da3884efe6501613c7834a3d02a91676d2</a></p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/mmr", 
        "name": "mmr", 
        "avatar": "https://cdn.v2ex.com/avatar/e3c9/244b/588157_large.png?m=1689567380"
      }, 
      "url": "https://www.v2ex.com/t/1120348", 
      "title": "\u53d1\u73b0 Next.js \u7684\u4e00\u4e2a\u5f88\u611a\u8822\u7684 feature\u3002", 
      "id": "https://www.v2ex.com/t/1120348", 
      "date_published": "2025-03-22T12:27:50+00:00", 
      "content_html": "<p>\u6211\u6709\u4e00\u4e2a\u7528 Next.js \u9759\u6001\u751f\u6210\u7684 Blog \u3002</p>\n<p>\u8fd9\u4e4b\u4e2d\u6709\u4e00\u4e2a\u52a8\u6001\u8def\u7531\u7684\u53c2\u6570\u4e2d\u5e26\u6709\u4e2d\u6587\u3002</p>\n<p>\u6b64\u65f6\uff0c\u5f53\u4f7f\u7528 <code>pnpm dev</code> \u542f\u52a8\u65f6\uff0c<code>generateStaticParams()</code> \u4e2d\u8fd4\u56de\u7684\u8def\u5f84\u4e0d\u4f1a\u88ab\u7f16\u7801\u6210 URL \u683c\u5f0f\u3002</p>\n<p>\u6b64\u65f6\u8bbf\u95ee\u7684\u8def\u5f84\u88ab\u7f16\u7801\u4e86\uff0c\u62a5\u9519\u663e\u793a\u5728 <code>generateStaticParams()</code> \u4e2d\u627e\u4e0d\u5230\u6b64\u8def\u5f84\u3002</p>\n<p>\u5f53\u4e3a <code>generateStaticParams()</code> \u4e2d\u7684\u8fd4\u56de\u7f16\u7801\u65f6\uff0c<code>pnpm dev</code> \u6b63\u5e38\u4e86\uff0c\u800c <code>pnpm build</code> \u65f6\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\u3002</p>\n<p>\u56e0\u4e3a <code>pnpm build</code> \u65f6 <code>generateStaticParams()</code> \u7684\u8fd4\u56de\u4f1a\u88ab\u7f16\u7801\uff0c\u624b\u52a8\u7f16\u7801\u7684\u7ed3\u679c\u662f\u7f16\u7801\u4e86\u4e24\u6b21\uff0c\u62a5\u9519\u663e\u793a\u5728 <code>generateStaticParams()</code> \u4e2d\u627e\u4e0d\u5230\u6b64\u8def\u5f84\u3002</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/blucer", 
        "name": "blucer", 
        "avatar": "https://cdn.v2ex.com/gravatar/81e36056e8a45812b221040d87481fd9?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1117951", 
      "title": "drizzle \u4e2d many-to-many \u7684\u8868\u600e\u4e48\u63d2\u5165\u66f4\u4f18\u96c5", 
      "id": "https://www.v2ex.com/t/1117951", 
      "date_published": "2025-03-12T12:22:18+00:00", 
      "content_html": "<p>\u6bd4\u5982\u6211\u73b0\u5728\u6709\u4e2a groups \u548c user \uff0c\u6211\u8981\u521b\u5efa\u4e00\u4e2a group \uff0c\u6709 name \u548c\u5f88\u591a user \u6570\u7ec4\uff0c\u6211\u73b0\u5728\u662f create group \u4e4b\u540e\u62ff\u5230 group id \uff0c\u7136\u540e\u904d\u5386 user \u6570\u7ec4\uff0c\u4e00\u4e2a\u4e00\u4e2a\u521b\u5efa user \u548c group \u7684\u5173\u7cfb</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/anzu", 
        "name": "anzu", 
        "avatar": "https://cdn.v2ex.com/avatar/2cb5/18bf/377048_large.png?m=1738978440"
      }, 
      "url": "https://www.v2ex.com/t/1109811", 
      "title": "\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u914d\u7f6e\u5c06\u4e3b\u9875\u8bbe\u7f6e\u4e3a home.tsx \u5417\uff1f", 
      "id": "https://www.v2ex.com/t/1109811", 
      "date_published": "2025-02-08T01:53:38+00:00", 
      "content_html": "<p>\u95ee\u4e86 AI</p>\n<hr/>\n<p>\u95ee\uff1a\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u914d\u7f6e\u5c06\u4e3b\u9875\u8bbe\u7f6e\u4e3a home.tsx \u5417\uff1f</p>\n<p>AI\uff1a\u4e0d\uff0c\u4f60\u4e0d\u80fd\u901a\u8fc7\u7b80\u5355\u7684\u914d\u7f6e\u6765\u5c06\u4e3b\u9875\u8bbe\u7f6e\u4e3a <code>home.tsx</code> \u5e76\u8ba9\u5b83\u5bf9\u5e94\u6839\u8def\u7531 <code>/</code>\u3002Next.js \u7684 <code>app</code> \u76ee\u5f55\u7ed3\u6784\u4f9d\u8d56\u4e8e\u7279\u5b9a\u7684\u6587\u4ef6\u540d\u7ea6\u5b9a\uff0c\u5176\u4e2d <code>page.tsx</code> (\u6216 <code>.js</code>, <code>.jsx</code>) \u7528\u4e8e\u5b9a\u4e49\u8def\u7531\u3002</p>\n<p>\u4ee5\u4e0b\u662f\u539f\u56e0\u4ee5\u53ca\u66ff\u4ee3\u65b9\u6848\uff1a</p>\n<p><strong>\u4e3a\u4ec0\u4e48\u4e0d\u80fd\u76f4\u63a5\u66f4\u6539\u6587\u4ef6\u540d\uff1a</strong></p>\n<ul>\n<li><strong>\u7ea6\u5b9a\u4f18\u4e8e\u914d\u7f6e:</strong> Next.js \u5f3a\u70c8\u4f9d\u8d56\u7ea6\u5b9a\u4f18\u4e8e\u914d\u7f6e\u7684\u539f\u5219\u3002\u5bf9\u4e8e <code>app</code> \u76ee\u5f55\uff0c\u5b83\u671f\u671b\u5728\u8def\u7531\u76ee\u5f55\u4e2d\u627e\u5230\u4e00\u4e2a\u540d\u4e3a <code>page.tsx</code> (\u6216\u5176\u4ed6\u652f\u6301\u7684\u6587\u4ef6\u6269\u5c55\u540d) \u7684\u6587\u4ef6\u6765\u6e32\u67d3\u8be5\u8def\u7531\u3002  \u5982\u679c\u5b83\u627e\u4e0d\u5230 <code>page.tsx</code>\uff0c\u5b83\u5c06\u4e0d\u4f1a\u6e32\u67d3\u8be5\u8def\u7531\u3002</li>\n<li><strong>\u8def\u7531\u89e3\u6790\u5668:</strong> Next.js \u7684\u8def\u7531\u89e3\u6790\u5668\u4e13\u95e8\u67e5\u627e <code>page.tsx</code> \u6587\u4ef6\u6765\u786e\u5b9a\u9875\u9762\u7684\u5165\u53e3\u70b9\u3002\u91cd\u547d\u540d\u8be5\u6587\u4ef6\u4f1a\u7834\u574f\u8fd9\u4e2a\u8fc7\u7a0b\u3002</li>\n</ul>\n<p>\u2026\u2026\uff08\u4ee5\u4e0b\u7701\u7565\uff09</p>\n<hr/>\n<p>\u662f\u771f\u7684\u4e0d\u80fd\u53d8\u5417\uff1f\u4e0d\u4f1a\u5427\uff1f\u6709\u70b9\u641e\u7b11\u4e86\u5427\uff1f\u7ea6\u5b9a\u4f18\u4e8e\u914d\u7f6e\u6211\u7406\u89e3\uff0c\u4f46\u662f\u73b0\u5728\u914d\u7f6e\u90fd\u6ca1\u6709\u554a\uff1f\uff01</p>\n<p>Next.js 13 \u4e4b\u524d\u8fd8\u662f index.js \uff0c\u73b0\u5728\u53d8\u6210 page \uff0c\u6709\u4ec0\u4e48\u610f\u4e49\u5417\uff1f\u6211\u4e0d\u7406\u89e3\u2026\u2026</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/bemQaz", 
        "name": "bemQaz", 
        "avatar": "https://cdn.v2ex.com/avatar/0160/0503/580304_large.png?m=1742375808"
      }, 
      "url": "https://www.v2ex.com/t/1106874", 
      "title": "\u6bcf\u6b21\u5bfc\u822a\u4f1a\u6709\u4e00\u4e2a _rsc \u53c2\u6570\u7684\u8bf7\u6c42\u600e\u4e48\u80fd\u963b\u6b62", 
      "id": "https://www.v2ex.com/t/1106874", 
      "date_published": "2025-01-21T10:50:59+00:00", 
      "content_html": "<p>\u53d1\u73b0\u7f51\u7edc\u4e0d\u597d\u7684\u60c5\u51b5\u4e0b\u8fd9\u4e2a\u8bf7\u6c42\u4f1a\u5f71\u54cd\u9875\u9762\u6e32\u67d3\uff0c\u4f46\u6211\u8fd9\u4e2a\u9875\u9762\u662f\u7eaf\u5ba2\u6237\u7aef\u7684\u7ec4\u4ef6\uff0c\u53ea\u662f\u539f\u5730\u66f4\u6539\u67e5\u8be2\u53c2\u6570\u7684\u5bfc\u822a\u90fd\u4f1a\u4e00\u76f4\u89e6\u53d1\u8fd9\u4e2a\u8bf7\u6c42\uff0c\u5b98\u65b9\u6587\u6863\u4e5f\u6ca1\u627e\u5230\u4ec0\u4e48\u80fd\u63a7\u5236\u8fd9\u4e2a\u884c\u4e3a\u7684\u5730\u65b9</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/lucasji", 
        "name": "lucasji", 
        "avatar": "https://cdn.v2ex.com/avatar/d75d/2fd0/573580_large.png?m=1673573884"
      }, 
      "url": "https://www.v2ex.com/t/1106503", 
      "title": "\u4e00\u4e2a Next.js ISR \u5931\u6548\u7684\u53ef\u80fd\u539f\u56e0", 
      "id": "https://www.v2ex.com/t/1106503", 
      "date_published": "2025-01-20T07:43:47+00:00", 
      "content_html": "<p>\u5982\u679c\u4f60\u9047\u5230 Next.js <code>revalidatePath</code> \u5931\u6548\u7684\u95ee\u9898\uff0c\u4e00\u4e2a\u53ef\u80fd\u7684\u539f\u56e0\u662f\u4f60\u7684 path \u5305\u542b\u4e2d\u6587\u5b57\u7b26\u3002</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/lucasji", 
        "name": "lucasji", 
        "avatar": "https://cdn.v2ex.com/avatar/d75d/2fd0/573580_large.png?m=1673573884"
      }, 
      "url": "https://www.v2ex.com/t/1105401", 
      "date_modified": "2025-01-16T01:07:50+00:00", 
      "content_html": "<p>\u4f5c\u4e3a React \u9886\u57df\u6781\u5bcc\u76db\u540d\u7684\u6846\u67b6\uff0c\u5728\u5927\u7248\u672c\u5df2\u7ecf\u66f4\u65b0\u5230 15 \u7684\u60c5\u51b5\u4e0b\uff0c\u5bf9\u4e8e\u57fa\u7840\u7684 ISR \u529f\u80fd <code>revalidatePath</code>\u7684\u7a33\u5b9a\u6027\u4f9d\u65e7\u65e0\u6cd5\u4fdd\u8bc1\uff0c\u592a\u4ee4\u4eba\u5931\u671b\u4e86\uff01\u5b98\u65b9\u5bf9\u4e8e bug \u4fee\u590d\u7684\u79ef\u6781\u6027\u8c8c\u4f3c\u4e0d\u9ad8\uff08\u8fd8\u662f\u8bf4 bug \u5b9e\u5728\u592a\u591a\u4e86\u6765\u4e0d\u53ca\u4fee\uff1f\uff09\uff0c\u53cd\u800c\u4e00\u4e2a\u52b2\u5730\u63a8\u51fa\u65b0\u7684\u529f\u80fd\uff0c\u8fd9\u79cd\u505a\u6cd5\u592a\u4e0d\u8d1f\u8d23\u4efb\u4e86\u3002\u65e0\u6cd5\u60f3\u8c61\u8fd9\u662f\u4e00\u4e2a\u62e5\u6709 129k start \u7684\u4f5c\u54c1\u3002</p>\n", 
      "date_published": "2025-01-15T16:11:23+00:00", 
      "title": "Next.js \u7684\u5b9e\u9645\u5f00\u53d1\u4f53\u9a8c\u771f\u662f\u4e00\u8a00\u96be\u5c3d", 
      "id": "https://www.v2ex.com/t/1105401"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/FynnZ", 
        "name": "FynnZ", 
        "avatar": "https://cdn.v2ex.com/gravatar/44c3db119ba99513adf5638ca8ee662a?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1105386", 
      "title": "\u5c0f\u767d\u6c42\u6559\uff1a next.js \u9879\u76ee\u90e8\u7f72 vercel \u73af\u5883\u53d8\u91cf\u4e0d\u751f\u6548", 
      "id": "https://www.v2ex.com/t/1105386", 
      "date_published": "2025-01-15T14:44:50+00:00", 
      "content_html": "<p>\u65b0\u624b\u7528 AI \u5199\u4e86\u4e2a next.js \u9879\u76ee\uff0c\u6784\u5efa\u7684\u65f6\u5019\u603b\u662f\u62a5\u9519\uff0cAI \u4e5f\u89e3\u51b3\u4e0d\u4e86\u95ee\u9898\u3002\u3002</p>\n<p>\u8fd9\u662f\u62a5\u9519\u4ee3\u7801\uff1a</p>\n<p>Fetching tools from: <a href=\"https://your-vercel-app-url.vercel.app\" rel=\"nofollow\">https://your-vercel-app-url.vercel.app</a>\nFull API URL: <a href=\"https://your-vercel-app-url.vercel.app/api/sites\" rel=\"nofollow\">https://your-vercel-app-url.vercel.app/api/sites</a>\nAPI Response Status: 404\nError fetching tools: Error: Failed to fetch tools: 404 Not Found\nat c (.next/server/app/page.js:1:28997)\nat async f (.next/server/app/page.js:1:29346)\nFinalizing page optimization ...\nCollecting build traces ...</p>\n<p>\u6211\u5728 vercel \u7684\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e\u4e2d\u65b0\u589e\u4e86\uff1a\nkey\uff1aNEXT_PUBLIC_BASE_URL\nValue\uff1a <a href=\"https://linkary-puce.vercel.app\" rel=\"nofollow\">https://linkary-puce.vercel.app</a></p>\n<p>Environments \u52fe\u9009\u4e86 Production \u548c Preview</p>\n<p>\u6700\u540e\u5728 Redeploy \u7684\u65f6\u5019\u9009\u62e9\u4e86 Production \uff0c\u7136\u540e\u603b\u662f\u62a5\u9519\uff0c\u770b\u8d77\u6765\u662f\u73af\u5883\u53d8\u91cf\u6ca1\u6709\u751f\u6548\uff1b\n\u4f46\u662f\u6211\u5728\u4ee3\u7801\u4e2d\u5f3a\u5236\u4f7f\u7528 vercel \u7684 URL \uff0c\u5c31\u80fd\u6b63\u5e38\u8dd1\u4e0b\u53bb\u3002</p>\n<p>page.tsx \u4ee3\u7801\uff1a</p>\n<p>async function getTools(): Promise&lt;ToolsResponse&gt; {\ntry {\nconst baseUrl =\nprocess.env.NEXT_PUBLIC_BASE_URL || \"https://your-vercel-app-url.vercel.app\";\nconsole.log(\"Fetching tools from:\", baseUrl);\nconsole.log(\"Full API URL:\", <code>${baseUrl}/api/sites</code>);</p>\n<pre><code>const res = await fetch(`${baseUrl}/api/sites`, {\n  next: { revalidate: 60 },\n  headers: {\n    \"Content-Type\": \"application/json\",\n  },\n});\n</code></pre>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/sola97", 
        "name": "sola97", 
        "avatar": "https://cdn.v2ex.com/avatar/a8d9/a243/144294_large.png?m=1649410211"
      }, 
      "url": "https://www.v2ex.com/t/1102135", 
      "date_modified": "2025-01-03T00:22:54+00:00", 
      "content_html": "<p>\u6211\u77e5\u9053\u521b\u5efa\u7684\u662f Next.js + Tailwind CSS + shadcn/ui \u8fd9\u4e2a\u6846\u67b6<br/>\nv0.dev \u8ba9\u6211\u4e0b\u8f7d\u7684\u4ee3\u7801\u91cc\uff0c\u6ca1\u6709 package.json \uff0c\u6211\u9700\u8981\u81ea\u5df1\u914d\u7f6e\u8fd9\u4e9b\u5417\uff1f</p>\n", 
      "date_published": "2025-01-02T13:53:01+00:00", 
      "title": "v0.dev \u5f00\u53d1\u7684 Next.js \u9879\u76ee\uff0c\u4e0b\u8f7d\u4ee3\u7801\u5230\u672c\u5730\uff0c\u600e\u4e48\u8dd1\u8d77\u6765\uff1f", 
      "id": "https://www.v2ex.com/t/1102135"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/cs3230524", 
        "name": "cs3230524", 
        "avatar": "https://cdn.v2ex.com/gravatar/6fbd5aef815a6cb9e87f5051195a4a46?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1101797", 
      "title": "an-desgin \u600e\u4e48\u4f18\u5316\u7f16\u8bd1\u901f\u5ea6\uff1f", 
      "id": "https://www.v2ex.com/t/1101797", 
      "date_published": "2025-01-01T08:22:25+00:00", 
      "content_html": "<p>\u5c31\u6b63\u5e38\u7684\u5f15\u5165\u4e00\u4e9b\u8868\u683c\u3001\u8868\u5355\u5c31\u8fd9\u6837\u4e86\u3002</p>\n<p>\u2713 Compiled /admin/usercenter in 33.4s (8687 modules)</p>\n<p>\u662f\u4e0d\u662f\u6709\u4e2a\u4ec0\u4e48\u6309\u9700\u52a0\u8f7d\u7f16\u8bd1\uff1f\u4e0d\u7136\u8fd9\u4e00\u4e2a\u9875\u9762\u5c31 30 \u51e0\u79d2\uff0c\u8fd8\u600e\u4e48\u73a9\u513f\u554a\u3002</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/twig", 
        "name": "twig", 
        "avatar": "https://cdn.v2ex.com/avatar/17bf/2076/547688_large.png?m=1755543712"
      }, 
      "url": "https://www.v2ex.com/t/1098044", 
      "title": "Next.js \u7b80\u76f4\u662f\u5c4e\u554a", 
      "id": "https://www.v2ex.com/t/1098044", 
      "date_published": "2024-12-16T18:13:07+00:00", 
      "content_html": "\u5570\u54e9\u5570\u55e6\u3001\u53e0\u5e8a\u67b6\u5c4b\u3002"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/daddyLi", 
        "name": "daddyLi", 
        "avatar": "https://cdn.v2ex.com/gravatar/aff0c1481649f54c4f04e9d87640fbb8?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1087810", 
      "title": "Nextjs Image \u56fe\u7247\u7ec4\u4ef6\u5982\u4f55\u8bbe\u7f6e\u900f\u660e\u4ee3\u7406", 
      "id": "https://www.v2ex.com/t/1087810", 
      "date_published": "2024-11-08T08:29:34+00:00", 
      "content_html": "<pre><code>&lt;Image\n                        alt=\"\u8425\u4e1a\u6267\u7167\"\n                        className=\"min-w-32 rounded-md object-cover\" // aspect-square\n                        height=\"4\"\n                        src={customer.businessLicense}\n                        width=\"32\"\n                      /&gt;\n</code></pre>\n<p>\u56e0\u4e3a\u90e8\u7f72\u73af\u5883\u9700\u8981\u901a\u8fc7\u4e00\u53f0\u4ee3\u7406\u670d\u52a1\u5668\u8bf7\u6c42\u516c\u7f51 cdn \uff0c\u8bf7\u95ee\u5982\u4f55\u914d\u7f6e nextjs \u4f7f\u5f97\u80fd\u591f\u901a\u8fc7\u4ee3\u7406\u670d\u52a1\u5668\u83b7\u53d6\u56fe\u7247\u8d44\u6e90\uff0c\u8bf7\u6709\u7ecf\u9a8c\u7684 xd \u5e2e\u5fd9\u89e3\u7b54\u4e0b\uff0c\u611f\u8c22\uff01</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Citizen7", 
        "name": "Citizen7", 
        "avatar": "https://cdn.v2ex.com/gravatar/fe7959cca5457e7184b78a0e21d12376?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1071952", 
      "date_modified": "2024-09-11T04:31:56+00:00", 
      "content_html": "<p><img alt=\"\u56fe\u7247 1\" class=\"embedded_image\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"https://img.picgo.net/2024/09/11/1f34fc8dc90943cea.png\"/>\n\u4e00\u5f00\u59cb\u5199\u7684 fetch('/api/proxy'), \u8bbf\u95ee api \u63d0\u793a </p>\n<pre><code>   \u6d4f\u89c8\u5668\uff1aPOST http://localhost:3000/api/proxy net::ERR_CONNECTION_REFUSED\n   \u6539\u6210 fetch('https://weixx.com:3000/api/proxy')\u5e76\u6ca1\u6709\u89e3\u51b3\uff0c\u5e94\u8be5\u600e\u4e48\u505a\u5462\uff0c\u6c42\u6c42\u6c42\u6307\u6559\n</code></pre>\n", 
      "date_published": "2024-09-11T04:30:01+00:00", 
      "title": "Nextjs\uff0c\u672c\u5730\u8fd0\u884c\u6ca1\u95ee\u9898\uff0c\u90e8\u7f72\u5230\u670d\u52a1\u5668\u4f1a\u53d1\u751f\u8fd9\u79cd\u5947\u602a\u7684\u95ee\u9898\uff08\u521d\u5b66\u8005\uff09", 
      "id": "https://www.v2ex.com/t/1071952"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Echo23333", 
        "name": "Echo23333", 
        "avatar": "https://cdn.v2ex.com/avatar/2a7f/6a09/624954_large.png?m=1722910160"
      }, 
      "url": "https://www.v2ex.com/t/1069541", 
      "date_modified": "2024-09-02T03:04:00+00:00", 
      "content_html": "<p><a href=\"http://image-to-text.ai\" rel=\"nofollow\">image-to-text.ai</a> \u8fd9\u4e2a\u57df\u540d\u662f 2024 \u5e74 1 \u6708\u6ce8\u518c\u7684\uff0c\u5f53\u65f6\u662f\u56e0\u4e3a\u5728\u901b\u5373\u523b\u7684\u65f6\u5019\u5076\u7136\u770b\u5230\u6709\u4eba\u8bf4\u73b0\u5728\u5927\u90fd\u662f\u6587\u751f\u56fe\u7684 AI \uff0c\u600e\u4e48\u6ca1\u6709\u56fe\u751f\u6587\u7684\uff0c\u60f3\u4e86\u4e0b\u786e\u5b9e\u662f\uff0c\u7136\u540e\u5c31\u51c6\u5907\u505a\u4e00\u4e2a\u8fd9\u4e2a\u65b9\u5411\u7684\u7f51\u7ad9\uff0c\u987a\u4fbf\u5b66\u4e60 NextJS \u3002</p>\n<p>\u57df\u540d\u672c\u6765\u662f\u503e\u5411\u5728 cf \u6ce8\u518c\uff0c\u4f46 cf \u6ca1\u6709 ai \u57df\u540d\uff0c\u6700\u540e\u662f\u5728 namesilo \u4e0a\u6ce8\u518c\u7684\uff0c\u82b1\u4e86\u56db\u767e\u591a RMB \uff0c\u5f53\u65f6\u4e5f\u662f\u4e00\u65f6\u5934\u8111\u53d1\u70ed\ud83e\udd72</p>\n<p>\u6ca1\u60f3\u5230\u8fd9\u4e00\u62d6\u5c31\u5230\u5e74\u5e95\u4e86</p>\n<p>\u7f51\u7ad9\u5730\u5740 <a href=\"https://image-to-text.ai/\" rel=\"nofollow\">https://image-to-text.ai/</a> \uff0c\u7b97\u662f\u4e00\u4e2a\u6bd4\u8f83\u5b8c\u6574\u7684\u7ad9\u70b9\u4e86\uff0c\u4e3b\u8981\u7684\u529f\u80fd\u5df2\u5b8c\u6210\uff0c\u540e\u7eed\u8fd8\u9700\u8981\u8fdb\u884c\u4e00\u4e9b\u4f18\u5316\u3002</p>\n<p>\u4e0b\u9762\u5206\u4eab\u4e00\u4e0b\u8fd9\u4e2a\u7ad9\u70b9\u7528\u5230\u7684\u4e1c\u897f\uff0c\u5e0c\u671b\u5bf9\u4f60\u6709\u5e2e\u52a9</p>\n<ol>\n<li>\u767b\u5f55\uff1aclerk+google</li>\n<li>\u652f\u4ed8\uff1alemonsqueezy</li>\n<li>\u90e8\u7f72\uff1aVercel</li>\n<li>\u6570\u636e\u5e93\uff1aVercel Postgres</li>\n<li>\u56fe\u7247\u5b58\u50a8\uff1aCloudflare R2</li>\n<li>AI\uff1aAzure + Replicate</li>\n</ol>\n<p>NextJS \u76f8\u5173\uff1aapp router \u3001server actions \u3001shadcn \u3001prisma</p>\n<p>\u5927\u6982\u8fd9\u4e9b\uff0c\u5927\u5bb6\u8fd8\u6709\u4ec0\u4e48\u60f3\u95ee\u7684\u7559\u8a00\u5427\uff0c\u6211\u770b\u5230\u4f1a\u56de\u590d\u7684\u3002</p>\n", 
      "date_published": "2024-09-02T02:55:02+00:00", 
      "title": "\u8fd9\u5e94\u8be5\u7b97\u662f\u7b2c\u4e00\u6b21\u5b8c\u6574\u8dd1\u901a\u7684\u4e00\u4e2a NextJS \u9879\u76ee\u4e86", 
      "id": "https://www.v2ex.com/t/1069541"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Christolan", 
        "name": "Christolan", 
        "avatar": "https://cdn.v2ex.com/avatar/54a1/b5af/667917_large.png?m=1722831891"
      }, 
      "url": "https://www.v2ex.com/t/1063700", 
      "date_modified": "2024-08-09T12:39:23+00:00", 
      "content_html": "", 
      "date_published": "2024-08-09T02:51:07+00:00", 
      "title": "NextJS \u5f00\u53d1\u79fb\u52a8\u7aef\uff0c\u6700\u63a8\u8350\u7684 UI \u7ec4\u4ef6\u5e93\u662f\u54ea\u4e2a\u554a\uff1f", 
      "id": "https://www.v2ex.com/t/1063700"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Echo23333", 
        "name": "Echo23333", 
        "avatar": "https://cdn.v2ex.com/avatar/2a7f/6a09/624954_large.png?m=1722910160"
      }, 
      "url": "https://www.v2ex.com/t/1062829", 
      "date_modified": "2024-08-06T02:21:01+00:00", 
      "content_html": "<p>\u6700\u8fd1\u78e8\u4e86\u4e00\u4e2a\u5de5\u5177\u7ad9\uff0c\u7eaf\u7cb9\u662f\u4e3a\u4e86\u7ed9\u8fd9\u5927\u534a\u5e74\u5b66\u4e60 NextJS \u7684\u4e00\u4e2a\u4ea4\u5f85\u5427\u3002\u8fd8\u6709 Tailwindcss ~</p>\n<p>\u8fd9\u662f\u4e00\u4e2a\u5728\u7ebf\u751f\u6210\u7f51\u7ad9 Favicon \u56fe\u6807\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u4ece\u6587\u5b57\u751f\u6210\u3001\u4ece Emoji \u751f\u6210\u3001\u56fe\u7247\u751f\u6210\u3002\u5982\u679c\u6709\u4eba\u7528\u7684\u8bdd\u518d\u770b\u770b\u6dfb\u52a0\u5565\u65b0\u529f\u80fd\u5427\u3002</p>\n<p>\u5730\u5740\uff1a <a href=\"https://ifavicon.com\" rel=\"nofollow\">https://ifavicon.com</a></p>\n<p>\u6280\u672f\u6808\uff1aNextJS \u3001Tailwindcss \u3001Shadcn \u3001Vercel</p>\n", 
      "date_published": "2024-08-06T02:20:24+00:00", 
      "title": "\u65ad\u65ad\u7eed\u7eed\u5b66 NextJS \u5927\u534a\u5e74\u4e86\uff0c\u7ec3\u624b\u505a\u4e86\u4e2a Favicon \u56fe\u6807\u751f\u6210\u7f51\u7ad9\uff0c\u5927\u4f6c\u5e2e\u770b\u770b\u884c\u4e0d\u884c", 
      "id": "https://www.v2ex.com/t/1062829"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/sead", 
        "name": "sead", 
        "avatar": "https://cdn.v2ex.com/avatar/9bd3/097d/670636_large.png?m=1769071153"
      }, 
      "url": "https://www.v2ex.com/t/1058107", 
      "title": "Nextjs \u5199\u7684\u7b2c\u4e00\u4e2a\u7ad9\u70b9\uff0c \u8fd8\u662f\u4e2a\u51fa\u6d77\u7ad9\uff0c UI \u600e\u6837\u624d\u80fd\u770b\u8d77\u6765\u9ad8\u5927\u5c1a\uff1f", 
      "id": "https://www.v2ex.com/t/1058107", 
      "date_published": "2024-07-17T14:35:44+00:00", 
      "content_html": "<p>\u4e4b\u524d\u73a9\u7684 ruby and rails \uff0c\u73b0\u5728\u53d1\u73b0 nextjs \u66f4\u5408\u9002\u73b0\u72b6\u3002</p>\n<p>\u4e0d\u8fc7\u524d\u7aef\u9a9a\u64cd\u4f5c\u8fd8\u662f\u9700\u8981\u70b9\u529f\u529b\uff0c\u590d\u6742\u70b9\u4ea4\u4e92\u8fd8\u662f\u6709\u70b9\u5403\u529b\u3002</p>\n<p>UI \u6392\u7248\u603b\u662f\u89c9\u5f97\u7ec6\u8282\u4e0d\u662f\u5f88\u5230\u4f4d\u3002</p>\n<p>\u4e0b\u9762\u662f\u7ec3\u624b\u7684\u5de5\u5177\u7ad9</p>\n<p><a href=\"https://www.serpchecking.com\" rel=\"nofollow\">https://www.serpchecking.com</a></p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/StoneKnocker", 
        "name": "StoneKnocker", 
        "avatar": "https://cdn.v2ex.com/avatar/7a04/5761/666418_large.png?m=1724219501"
      }, 
      "url": "https://www.v2ex.com/t/1057773", 
      "title": "\u53c8\u64b8\u4e86\u4e00\u4e2a\uff0c\u8fd9\u6b21\u6ca1\u6709\u591a\u8bed\u8a00\u548c\u7528\u6237\u767b\u5f55\uff0c\u5feb\u591a\u4e86", 
      "id": "https://www.v2ex.com/t/1057773", 
      "date_published": "2024-07-16T09:13:53+00:00", 
      "content_html": "\u8fd9\u6b21\u7528 cursor \u7f16\u8f91\u5668\uff0c\u501f\u52a9 AI \u7684\u80fd\u529b\u6765\u5199\u4e86\u4e2a\u7f51\u7ad9\uff1a <a target=\"_blank\" href=\"https://ponydiffusion.com/\" rel=\"nofollow noopener\">https://ponydiffusion.com/</a><br />\u4e0d\u5f97\u4e0d\u8bf4\uff0cAI \u5bf9\u7f16\u7a0b\u6548\u7387\u63d0\u5347\u592a\u5927\u4e86\u3002\u6211\u90fd\u5feb\u7f16\u7a0b\u719f\u7ec3\u5de5\u4e86\uff0c\u5e02\u573a\u5bf9\u521d\u7ea7\u7a0b\u5e8f\u5458\u7684\u9700\u6c42\u4f1a\u8d8a\u6765\u8d8a\u4f4e\u3002"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/StoneKnocker", 
        "name": "StoneKnocker", 
        "avatar": "https://cdn.v2ex.com/avatar/7a04/5761/666418_large.png?m=1724219501"
      }, 
      "url": "https://www.v2ex.com/t/1056868", 
      "title": "\u540e\u7aef\u6ca1\u524d\u7aef\u57fa\u7840\uff0c\u5b66 next \u6709\u70b9\u56f0\u96be", 
      "id": "https://www.v2ex.com/t/1056868", 
      "date_published": "2024-07-12T07:54:22+00:00", 
      "content_html": "\u590d\u5236\u4e00\u4e2a\u7b80\u5355\u7684\u7f51\u7ad9\uff0c\u6123\u662f\u4e00\u4e2a\u6708\u624d\u641e\u5b8c: <a target=\"_blank\" href=\"https://aistickers.net/\" rel=\"nofollow noopener\">https://aistickers.net/</a><br />\u7f16\u8bd1\u8fd8\u4e00\u5806\u62a5\u9519\uff0c\u65e0\u89c6 warning, \u603b\u7b97\u4eca\u5929\u7ed9\u6574\u4e0a\u7ebf\u4e86\u3002"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/whatsupbitch", 
        "name": "whatsupbitch", 
        "avatar": "https://cdn.v2ex.com/gravatar/a3703aa9cac3e64845b24df7a27e5f5b?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1053006", 
      "title": "Next.js \u5f00\u53d1\u65f6\uff0c\u7f16\u8bd1\u597d\u6162\u3002", 
      "id": "https://www.v2ex.com/t/1053006", 
      "date_published": "2024-06-27T02:56:48+00:00", 
      "content_html": "\u25cb Compiling /rms/login ...<br /> \u2713 Compiled /rms/login in 27.8s (4942 modules)<br /> GET /rms/login/ 200 in 29238ms<br /> \u2713 Compiled in 2.2s (2447 modules)<br /> \u25cb Compiling /favicon.ico ...<br /> \u2713 Compiled /favicon.ico in 8.8s (2525 modules)<br /> GET /favicon.ico 200 in 9242ms<br /><br />\u5f00\u53d1\u6a21\u5f0f\u6bcf\u6b21\u542f\u52a8\uff0c\u8fdb\u5165\u6bcf\u4e2a\u9875\u9762\u90fd\u8d3c\u6162\uff0c\u5927\u5bb6\u5982\u4f55\u5fcd\u53d7\u7684\u3002"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Blackricky", 
        "name": "Blackricky", 
        "avatar": "https://cdn.v2ex.com/avatar/c179/0fc2/108967_large.png?m=1704421412"
      }, 
      "url": "https://www.v2ex.com/t/1047744", 
      "title": "Next.js \u4f7f\u7528\u573a\u666f\u54a8\u8be2", 
      "id": "https://www.v2ex.com/t/1047744", 
      "date_published": "2024-06-07T08:40:07+00:00", 
      "content_html": "<p>\u6700\u8fd1\u5728\u770b<a href=\"https://nextjs.org/\" rel=\"nofollow\">Next.js</a> \uff0c\u6309\u7167\u5b98\u65b9\u6587\u6863\u5728\u672c\u5730\u8dd1\u4e86\u4e00\u4e0b demo \uff0c\u7528\u4e86 shadcn/ui \u7ec4\u4ef6\u5e93\u3002</p>\n<p>\u611f\u89c9 Next.js \u4f18\u52bf\u5c31\u662f SSR \uff0c\u5f00\u53d1\u4f01\u4e1a\u5b98\u7f51\u3001\u9759\u6001\u9875\u9762\u5565\u7684\u8fd8\u4e0d\u9519\uff0c\u4f46\u662f\u505a\u4e00\u4e2a\u4e2d\u540e\u53f0\u7ba1\u7406\u7cfb\u7edf\uff0c\u4e0d\u5982\u76f4\u63a5\u7528 vite +Antd+Spring Boot \u6765\u7684\u5feb</p>\n<p>\u60f3\u54a8\u8be2\u4e00\u4e0b\u5927\u5bb6\u4e00\u822c\u90fd\u7528\u5728\u4ec0\u4e48\u9879\u76ee\u4e0a\u5462\uff1f</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/bingobray", 
        "name": "bingobray", 
        "avatar": "https://cdn.v2ex.com/gravatar/7d41c3470602bf1bd126e6d6cd583abb?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1047594", 
      "date_modified": "2024-06-07T02:10:35+00:00", 
      "content_html": "<p>\u4eca\u5929\u5f00\u59cb\u9ad8\u8003\uff0c\u795d\u5404\u4f4d\u9ad8\u8003\u751f\u91d1\u699c\u9898\u540d\uff0c\u9a6c\u5230\u6210\u529f\uff01</p>\n<p>\u9ad8\u8003\u4f5c\u6587\u8bc4\u5206\nAI \u4f5c\u6587\u4f30\u5206\u5de5\u5177\uff0c\u4f60\u7684\u4f5c\u6587\u9605\u5377\u8001\u5e08.\n\u4ec5\u4f9b\u5a31\u4e50\ud83d\ude01</p>\n<p>\u2192 <a href=\"https://www.gaokaozuowen.xyz\" rel=\"nofollow\">https://www.gaokaozuowen.xyz</a></p>\n", 
      "date_published": "2024-06-07T02:10:21+00:00", 
      "title": "\u6839\u636e\u4e4b\u524d\u7684\u6a21\u677f\uff0c\u505a\u4e86\u4e00\u4e2a\u9ad8\u8003\u4f5c\u6587\u4f30\u5206\u73a9\u5177\uff0c\u4ec5\u4f9b\u5a31\u4e50\ud83d\ude01", 
      "id": "https://www.v2ex.com/t/1047594"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/bingobray", 
        "name": "bingobray", 
        "avatar": "https://cdn.v2ex.com/gravatar/7d41c3470602bf1bd126e6d6cd583abb?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1045515", 
      "title": "\u6211\u7684\u7b2c\u4e00\u4e2a AI \u5e94\u7528\uff0c\u6301\u7eed\u5b66\u4e60\u4e2d......", 
      "id": "https://www.v2ex.com/t/1045515", 
      "date_published": "2024-05-30T13:41:10+00:00", 
      "content_html": "<p>\u6301\u7eed\u5b66\u4e60 Nextjs \u5f00\u53d1\uff0c\u4e5f\u60f3\u8bd5\u8bd5 AI \u5e94\u7528\uff0c\u4ece\u5934\u5f00\u59cb\u64b8\u4e86\u4e00\u4e2a\u8bd5\u8bd5\uff0c\u8fd9\u662f\u6211\u7684\u7b2c\u4e00\u4e2a AI \u5e94\u7528\uff0c\u53ea\u8981\u6389\u4e86 AI \u63a5\u53e3\uff0c\u5c31\u7b97 AI \u5e94\u7528\u4e86\u5427 </p>\n<p><a href=\"https://www.haiku-generator.com\" rel=\"nofollow\">https://www.haiku-generator.com</a></p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/xiajiao", 
        "name": "xiajiao", 
        "avatar": "https://cdn.v2ex.com/gravatar/37889486538867b4f8d03c3c9a1a70fa?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1042644", 
      "title": "\u5927\u4f6c\u4eec\uff0c next-auth \u5982\u4f55\u672c\u5730\u5b9e\u73b0\u8c37\u6b4c\u767b\u5f55\uff1f", 
      "id": "https://www.v2ex.com/t/1042644", 
      "date_published": "2024-05-21T07:17:12+00:00", 
      "content_html": "<p>\u65b0\u4eba\u5c0f\u767d\u521a\u4f7f\u7528 nextjs \uff0c\u56fd\u5185\u5982\u679c\u901a\u8fc7 next-auth \u5b9e\u73b0\u8c37\u6b4c\u767b\u5f55\u6709\u4ec0\u4e48\u529e\u6cd5\u5417\uff1f\u6211\u4f7f\u7528 next-auth \u914d\u7f6e\u597d\u540e\u4e00\u76f4\u662f fetch \u9519\u8bef\uff0c\u8bf7\u95ee\u5927\u4f6c\u4eec\u662f\u600e\u4e48\u89e3\u51b3\u672c\u5730\u6d4b\u8bd5\u7684</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/xinbaoCode", 
        "name": "xinbaoCode", 
        "avatar": "https://cdn.v2ex.com/avatar/7414/43d0/671990_large.png?m=1725419095"
      }, 
      "url": "https://www.v2ex.com/t/1038173", 
      "date_modified": "2024-05-06T10:59:14+00:00", 
      "content_html": "<p>\u6700\u8fd1\u5728\u7528 nextjs + trpc + prisma \u6784\u5efa\u5168\u6808\u9879\u76ee</p>\n<p>\u5bf9\u4e8e\u540e\u7aef\u6bd4\u8f83\u590d\u6742\u7684\u60c5\u51b5</p>\n<p>\u76ee\u524d\u91c7\u7528\u7684\u505a\u6cd5\u662f\u501f\u9274 MVC \u7684\u4e09\u5c42\u67b6\u6784</p>\n<p>\u5c06\u540e\u7aef\u5206\u4e3a\u4e86 Service \u5c42\u548c Dao \u5c42 \ud83e\udd14</p>\n<p>\u4e0d\u8fc7\u4e0d\u592a\u786e\u5b9a\ud83d\udc36</p>\n<p>\u4e94\u4e00\u7684\u65f6\u5019\u501f\u9274\u4e86\u4e00\u4e9b Github \u5f00\u6e90\u7684\u9879\u76ee</p>\n<p>\u5e76\u6ca1\u6709\u627e\u5230\u4e00\u4e9b\u6bd4\u8f83\u597d\u7684\u5b9e\u8df5\u4f8b\u5b50</p>\n<p>\u5927\u5bb6\u6709\u4ec0\u4e48\u6bd4\u8f83\u597d\u7684 idea \u5417\uff1f\ud83d\ude4f</p>\n<p><img alt=\"\" class=\"embedded_image\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"https://i.imgur.com/g0AbotE.png\"/></p>\n", 
      "date_published": "2024-05-06T10:30:22+00:00", 
      "title": "[NextJs] \u5982\u4f55\u6784\u5efa\u590d\u6742\u7684\u5168\u6808\u9879\u76ee", 
      "id": "https://www.v2ex.com/t/1038173"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Cyron", 
        "name": "Cyron", 
        "avatar": "https://cdn.v2ex.com/avatar/8684/89ba/95031_large.png?m=1767664892"
      }, 
      "url": "https://www.v2ex.com/t/1035843", 
      "title": "NextJS \u53ef\u4ee5\u5728 route handler \u4e2d\u4f7f\u7528 setTimeOut \u5417", 
      "id": "https://www.v2ex.com/t/1035843", 
      "date_published": "2024-04-26T03:05:30+00:00", 
      "content_html": "<p>\u6700\u8fd1\u5728\u7528 NextJS \u5199 API \u65f6\uff0c\u60f3\u8981\u5b9e\u73b0\u4e00\u4e2a\u573a\u666f\uff1a\u7528\u6237\u64cd\u4f5c\u6210\u529f\u540e\uff0c\u670d\u52a1\u5668\u5728 2s \u540e\u6267\u884c\u4e00\u4e2a\u903b\u8f91\u3002</p>\n<p>\u4e0b\u9762\u7528 kv \u505a\u4e2a\u793a\u4f8b\uff1a</p>\n<pre><code class=\"language-js\">import { kv } from \"@vercel/kv\";\n\nexport async function GET() {\n  let page1 = await kv.get(\"page:1\");\n\n  setTimeout(() =&gt; {\n    kv.incr(\"page-visit:1\");\n  }, 2000);\n\n  return Response.json({ data: page1 });\n}\n\nexport const runtime = \"edge\"; // \u5c1d\u8bd5\u8fc7 nodejs \u6548\u679c\u4e00\u6837\nexport const fetchCache = \"force-no-store\";\n</code></pre>\n<p>\u5176\u4e2d incr \u5728\u672c\u5730\u53ef\u4ee5\u6b63\u5e38\u6267\u884c\uff0c\u4f46\u5728 Vercel \u4e0a\u90e8\u7f72\u65f6\u4f1a\u53d1\u751f\uff1a</p>\n<ul>\n<li>timeout=10ms \u65f6\uff0c\u53ef\u4ee5\u6b63\u5e38\u6267\u884c incr</li>\n<li>timeout=2000ms \u65f6\uff0c\u672c\u6b21 API \u8c03\u7528\u4e0d\u4f1a\u6267\u884c incr \uff0c\u4f46\u4f1a\u5728\u4e0b\u6b21\u8c03\u7528\u65f6\u6267\u884c\u4e0a\u4e00\u6b21\u7684 incr</li>\n</ul>\n<p>\u6211\u7684\u731c\u6d4b\u662f\uff1a\u672c\u5730 node \u662f\u5b88\u62a4\u8fdb\u7a0b\uff0c\u6240\u4ee5\u8ba1\u65f6\u5668\u4e0d\u4f1a\u88ab\u5378\u8f7d\u6389\uff0cincr \u6b63\u5e38\u6267\u884c\uff1b\u800c Vercel \u4e0a\u662f Serverless Function \uff0c10ms \u5185 CPU \u5206\u914d\u8fd8\u5728\u5c31\u4f1a\u6267\u884c incr \uff0c2000ms \u65f6 CPU \u5df2\u7ecf\u4e0d\u5206\u914d\u4e86\u5c31\u4e0d\u4f1a\u6267\u884c incr</p>\n<p>\u6211\u53ea\u662f\u60f3\u8585 Vercel \u7684\u7f8a\u6bdb\uff0c\u8bf7\u6559\u5927\u5bb6\u5982\u4f55\u624d\u80fd\u505a\u5230\u5ef6\u8fdf\u8c03\u7528</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/lwgo", 
        "name": "lwgo", 
        "avatar": "https://cdn.v2ex.com/gravatar/0246800a5757002ea378b5d4c131e08c?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1035428", 
      "title": "\u5173\u4e8e Nextjs app router \u505a\u5168\u6808\u5199\u540e\u7aef\u7684 API \u4e0d\u53cb\u597d\u7684\u95ee\u9898", 
      "id": "https://www.v2ex.com/t/1035428", 
      "date_published": "2024-04-24T15:27:37+00:00", 
      "content_html": "<p>\u6700\u8fd1\u5728\u770b nextJs, \u5047\u5982\u7528 NextJS \u53bb\u505a\u5168\u6808\u7684\u8bdd,\u611f\u89c9\u5bf9\u4e8e\u5728\u540e\u7aef\u7aef API \u4e0a\u4e0d\u592a\u53cb\u597d\u5462.\u6bd4\u5982\u6700\u65b0\u9ed8\u8ba4\u652f\u6301\u7684 App Router \u7684\u8bdd.\u57fa\u4e8e\u6587\u4ef6\u8def\u5f84\u8def\u7531,route.js \u91cc\u9762\u53ea\u80fd\u5199 get post \u7b49\u65b9\u6cd5.</p>\n<p>\u5047\u5982\u6211\u8981\u5199\u4e00\u4e2a\u7528\u6237\u7684\u64cd\u4f5c,\u9996\u5148\u53ef\u4ee5\u6709\u57fa\u7840\u7528\u6237\u7684\u589e\u5220\u6539\u67e5/api/user/route.js \u5199 get post put \u8fd9\u79cd,\n\u5982\u679c\u60f3\u8981\u5728\u7528\u6237\u91cc\u9762\u589e\u52a0\u4e00\u4e9b\u7edf\u8ba1,\u6216\u8005 getById listByType disableUser \u8fd9\u79cd\u5173\u4e8e\u7528\u6237\u7684\u5176\u4ed6\u64cd\u4f5c\u4ee5\u884c\u6587\u6539\u5982\u4f55\u5b9a\u4e49\u5462,\u96be\u9053\u6bcf\u4e00\u4e2a\u65b9\u6cd5\u90fd\u8981\u5199\u4e00\u4e2a\u8def\u5f84\u5417?\u6709\u6ca1\u6709\u4ec0\u4e48\u65b9\u5f0f\u53ef\u4ee5\u5b9e\u73b0\u5462?</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Rrrrrr", 
        "name": "Rrrrrr", 
        "avatar": "https://cdn.v2ex.com/avatar/e745/e1b7/458406_large.png?m=1739337632"
      }, 
      "url": "https://www.v2ex.com/t/1033331", 
      "title": "next.js 14 \u4e2d\uff0c\u5982\u679c\u4f7f\u7528\u4e86 server action\uff0c\u600e\u4e48 reset form", 
      "id": "https://www.v2ex.com/t/1033331", 
      "date_published": "2024-04-17T08:47:11+00:00", 
      "content_html": "<p>\u6211\u770b\u4e86\u4e00\u4e9b\u89e3\u51b3\u65b9\u6cd5\uff0c\u628a\u5b83\u8f6c\u6210 use client \uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u7528 ref.current?.reset()</p>\n<p>\u5982\u679c\u4e0d\u6539\u6210\u7528 use client \uff0c\u8fd8\u662f use server \u7684 action \uff0c\u600e\u4e48\u91cd\u7f6e form \u5462\uff1f</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/mmr", 
        "name": "mmr", 
        "avatar": "https://cdn.v2ex.com/avatar/e3c9/244b/588157_large.png?m=1689567380"
      }, 
      "url": "https://www.v2ex.com/t/1020244", 
      "title": "\u5982\u4f55\u5728 Next.js \u4e2d\u6e32\u67d3\u4ece OSS \u83b7\u53d6\u7684 JSX", 
      "id": "https://www.v2ex.com/t/1020244", 
      "date_published": "2024-03-03T10:48:30+00:00", 
      "content_html": "<p>\u662f\u4e2a\u535a\u5ba2\u5e94\u7528\uff0c\u4e3b\u9898\u81ea\u5b9a\u4e49\u6a21\u677f\uff0c\u4e3b\u9898\u7684 jsx \u548c\u5176\u4ed6\u6587\u4ef6\u6253\u7b97\u4ecd\u5728 OSS \u91cc\u3002\n\u4f46\u662f\u4e0d\u77e5\u9053\u600e\u4e48\u628a OSS \u4e2d\u7684 JSX \u6e32\u67d3\u5230\u9875\u9762\uff0c\u6700\u597d\u80fd\u652f\u6301 CSS module \u4e4b\u7c7b\u7684\u4e1c\u897f\uff0c\u53e6\u5916 JSX \u91cc\u53ef\u80fd\u6709\u5f15\u7528\u5176\u4ed6 JSX \u6587\u4ef6\uff0c\u600e\u4e48\u5904\u7406\u6bd4\u8f83\u597d\u5462\uff1f</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/pdzinc", 
        "name": "pdzinc", 
        "avatar": "https://cdn.v2ex.com/gravatar/7e903377e7c31cae49ee845c9a1c04bb?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1018383", 
      "title": "\u6709\u4eba\u6709\u8fd9\u79cd\u9700\u6c42\u5417\uff1f\u53ef\u4ee5\u901a\u8fc7 AI \u6765\u7ffb\u8bd1 json \u6587\u4ef6\uff0c\u5e76\u4e14\u53ef\u4ee5\u652f\u6301\u628a\u67d0\u4e2a\u6587\u4ef6\u5939\u4f5c\u4e3a\u6e90\uff0c\u628a\u91cc\u9762\u7684\u6240\u6709 json \u6587\u4ef6\u4ece\u4e00\u4e2a\u8bed\u8a00\u8f6c\u6362\u6210\u53e6\u4e00\u4e2a\u8bed\u8a00\u3002", 
      "id": "https://www.v2ex.com/t/1018383", 
      "date_published": "2024-02-26T01:58:13+00:00", 
      "content_html": "<p>\u6709\u4eba\u6709\u8fd9\u79cd\u9700\u6c42\u5417\uff1f\u53ef\u4ee5\u901a\u8fc7 AI \u6765\u7ffb\u8bd1 json \u6587\u4ef6\uff0c\u5e76\u4e14\u53ef\u4ee5\u652f\u6301\u628a\u67d0\u4e2a\u6587\u4ef6\u5939\u4f5c\u4e3a\u6e90\uff0c\u628a\u91cc\u9762\u7684\u6240\u6709 json \u6587\u4ef6\u4ece\u4e00\u4e2a\u8bed\u8a00\u8f6c\u6362\u6210\u53e6\u4e00\u4e2a\u8bed\u8a00\u3002\u6709\u6ca1\u6709\u73b0\u6210\u7684\u5de5\u5177\u5462\uff1f</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/sebasteanwu", 
        "name": "sebasteanwu", 
        "avatar": "https://cdn.v2ex.com/gravatar/8a1a5c90d79162b8e390ceb5d4528d46?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1017013", 
      "title": "\u7b2c\u4e00\u6b21\u7528 Next.js \u521b\u5efa\u4e86\u4e00\u4e2a\u7f51\u7ad9\u8fde\u642c\u5e26\u6284", 
      "id": "https://www.v2ex.com/t/1017013", 
      "date_published": "2024-02-20T14:34:35+00:00", 
      "content_html": "<p><a href=\"https://www.quitporn.xyz\" rel=\"nofollow\">https://www.quitporn.xyz</a></p>\n<p>\u6211\u4e0d\u592a\u4f1a\u5199\u4ee3\u7801\uff0c\u6b63\u5728\u5b66\u5199\u4ee3\u7801\uff0c\u8fd8\u6709 SEO \u3002\u6709\u6ca1\u6709\u5927\u4f6c\u80fd\u7ed9\u70b9\u4ee3\u7801\u548c SEO \u7684\u5efa\u8bae\u3002</p>\n"
    }
  ]
}