{"id":1819,"date":"2025-09-06T13:18:25","date_gmt":"2025-09-06T04:18:25","guid":{"rendered":"https:\/\/route-zero.com\/recruit\/?post_type=route&#038;p=1819"},"modified":"2026-01-06T13:18:38","modified_gmt":"2026-01-06T04:18:38","slug":"next-js-app-router-api%e9%80%a3%e6%90%ba4%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3%e5%be%b9%e5%ba%95%e6%af%94%e8%bc%83%ef%bd%9c%e6%9c%80%e9%81%a9%e3%81%aa%e9%81%b8%e3%81%b3%e6%96%b9%e3%81%af%ef%bc%9f","status":"publish","type":"route","link":"https:\/\/route-zero.com\/recruit\/route\/1819\/","title":{"rendered":"Next.js App Router API\u9023\u643a4\u30d1\u30bf\u30fc\u30f3\u5fb9\u5e95\u6bd4\u8f03\uff5c\u6700\u9069\u306a\u9078\u3073\u65b9\u306f\uff1f"},"content":{"rendered":"<div>\n<h2>\u306f\u3058\u3081\u306b\uff5c\u3053\u306e\u8a18\u4e8b\u3067\u5f97\u3089\u308c\u308b\u4fa1\u5024<\/h2>\n<p>\n    \u300cNext.js App Router\u3067API\u9023\u643a\u3001\u3069\u306e\u65b9\u6cd5\u304c\u30d9\u30b9\u30c8\uff1f\u300d<br \/>\n    \u305d\u3093\u306a\u60a9\u307f\u3001\u73fe\u5834\u306e\u30a8\u30f3\u30b8\u30cb\u30a2\u306a\u3089\u4e00\u5ea6\u306f\u901a\u308b\u9053\u3067\u3059\u3002<br \/>\n    <strong>Server Components<\/strong>\u30fb<strong>SWR\/React Query<\/strong>\u30fb<strong>Server Actions<\/strong>\u2026\u9078\u629e\u80a2\u304c\u5897\u3048\u300c\u3053\u308c\u3067\u826f\u3044\u306e\u304b\uff1f\u300d\u3068\u8ff7\u3063\u305f\u7d4c\u9a13\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f<\/p>\n<p>    \u7279\u306b\u300cfetch\u306f\u30b5\u30fc\u30d0\u30fc\u3067\uff1f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067\uff1f\u300d\u300cRoute Handlers\u306f\u3082\u3046\u4e0d\u8981\uff1f\u300d\u300c\u65b0\u6a5f\u80fd\u306eCORS\u3084\u30ad\u30e3\u30c3\u30b7\u30e5\u3001\u3069\u3046\u8a2d\u8a08\u3059\u308c\u3070\uff1f\u300d\u2015\u2015\u5f8c\u8f29\u30ec\u30d3\u30e5\u30fc\u3084\u6280\u8853\u9078\u5b9a\u3092\u4efb\u3055\u308c\u308b\u307b\u3069\u300c\u81ea\u4fe1\u3092\u6301\u3063\u3066\u65b9\u91dd\u3092\u793a\u305b\u308b\u6839\u62e0\u300d\u304c\u6b32\u3057\u304f\u306a\u308a\u307e\u3059\u3088\u306d\u3002<\/p>\n<p>    \u672c\u8a18\u4e8b\u306f\u3001\u305d\u3093\u306a\u201c\u73fe\u5834\u306e\u30e2\u30e4\u30e2\u30e4\u201d\u306b\u5bc4\u308a\u6dfb\u3044\u306a\u304c\u3089\u3001<strong>App Router\u6642\u4ee3\u306eAPI\u9023\u643a\u30d1\u30bf\u30fc\u30f34\u9078<\/strong>\u3092<strong>\u5fb9\u5e95\u6bd4\u8f03\uff06FAQ\u4ed8\u304d<\/strong>\u3067\u6574\u7406\u3057\u307e\u3059\u3002<\/p>\n<p>    \u30fbNext.js(App Router)\u3067API\u5b9f\u88c5\u306b\u8ff7\u3063\u3066\u3044\u308b<br \/>\n    \u30fb\u30a8\u30e9\u30fc\u3084\u8a2d\u8a08\u306e\u201c\u843d\u3068\u3057\u7a74\u201d\u3092\u73fe\u5834\u76ee\u7dda\u3067\u7406\u89e3\u3057\u305f\u3044<br \/>\n    \u30fb\u30b3\u30d4\u30daOK\u306e\u5b9f\u8df5\u30b3\u30fc\u30c9\u30fbFAQ\u307e\u3067\u6b32\u3057\u3044<br \/>\n    \u3068\u3044\u3046\u65b9\u306b\u304a\u3059\u3059\u3081\u3067\u3059\u3002\n  <\/p>\n<p>\n    \uff08Next.js\u306e\u57fa\u790e\u3084API\u8a2d\u8a08\u306e\u5168\u4f53\u50cf\u306b\u3064\u3044\u3066\u306f\u300e<a href=\"https:\/\/route-zero.com\/recruit\/route\/1789\/\" target=\"_blank\" rel=\"noopener\">\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u5fb9\u5e95\u6bd4\u8f03\uff01React\u30fbVue\u30fbAngular\u9055\u3044\u3068\u9078\u3073\u65b9<\/a\n    >\u300f\u3082\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\uff09\n  <\/p>\n<blockquote>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1aNext.js<\/strong><br \/>React\u30d9\u30fc\u30b9\u306eWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u9ad8\u901f\u30fb\u67d4\u8edf\u306b\u69cb\u7bc9\u3067\u304d\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3002SSR\u3084API\u9023\u643a\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u6a5f\u80fd\u304c\u5145\u5b9f\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1aApp Router<\/strong><br \/>Next.js\u306e\u65b0\u3057\u3044\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u65b9\u5f0f\u3002\u30da\u30fc\u30b8\u30fbAPI\u30fbUI\u306e\u69cb\u6210\u3092\u67d4\u8edf\u306b\u7ba1\u7406\u3067\u304d\u3001Server Components\u3084Server Actions\u306a\u3069\u6700\u65b0\u6a5f\u80fd\u3068\u9023\u643a\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1aAPI\u9023\u643a<\/strong><br \/>\u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u3084\u81ea\u793e\u30b5\u30fc\u30d0\u30fc\u3068\u30c7\u30fc\u30bf\u3092\u3084\u308a\u53d6\u308a\u3059\u308b\u4ed5\u7d44\u307f\u3002fetch\u3084Axios\u306a\u3069\u306eHTTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u3046\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1aServer Components<\/strong><br \/>\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3055\u308c\u308bReact\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3002\u521d\u671f\u8868\u793a\u304c\u9ad8\u901f\u3067\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8JS\u306e\u8ca0\u8377\u3092\u8efd\u6e1b\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1aSWR\/React Query<\/strong><br \/>React\u3067\u975e\u540c\u671f\u30c7\u30fc\u30bf\u53d6\u5f97\u30fb\u30ad\u30e3\u30c3\u30b7\u30e5\u30fb\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u7ba1\u7406\u3092\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1aServer Actions<\/strong><br \/>Next.js\u306e\u65b0\u6a5f\u80fd\u3002\u30b5\u30fc\u30d0\u30fc\u4e0a\u306e\u95a2\u6570\u3092\u76f4\u63a5\u547c\u3073\u51fa\u3057\u3001\u30d5\u30a9\u30fc\u30e0\u9001\u4fe1\u3084\u30c7\u30fc\u30bf\u66f4\u65b0\u3092\u578b\u5b89\u5168\u306b\u5b9f\u88c5\u3067\u304d\u308b\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1aRoute Handlers<\/strong><br \/>Next.js\u3067API\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u5b9a\u7fa9\u3059\u308b\u4ed5\u7d44\u307f\u3002\u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u9023\u643a\u3084Webhook\u53d7\u4fe1\u306a\u3069\u306b\u5229\u7528\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1afetch<\/strong><br \/>JavaScript\u6a19\u6e96\u306eHTTP\u30ea\u30af\u30a8\u30b9\u30c8API\u3002\u30b5\u30fc\u30d0\u30fc\u30fb\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u4e21\u65b9\u3067\u5229\u7528\u53ef\u80fd\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1aCORS<\/strong><br \/>\u7570\u306a\u308b\u30c9\u30e1\u30a4\u30f3\u9593\u3067\u30ea\u30bd\u30fc\u30b9\u3092\u3084\u308a\u53d6\u308a\u3059\u308b\u969b\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5236\u7d04\u3002API\u9023\u643a\u6642\u306b\u30a8\u30e9\u30fc\u539f\u56e0\u3068\u306a\u308b\u3053\u3068\u304c\u591a\u3044\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u30ad\u30e3\u30c3\u30b7\u30e5<\/strong><br \/>\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u3092\u4e00\u6642\u4fdd\u5b58\u3057\u3001\u518d\u53d6\u5f97\u3092\u9ad8\u901f\u5316\u3059\u308b\u4ed5\u7d44\u307f\u3002fetch\u3084SWR\/React Query\u3067\u5236\u5fa1\u53ef\u80fd\u3002<\/p>\n<\/blockquote>\n<hr \/>\n<h2>1. \u6700\u9069\u306aAPI\u9023\u643a\u306f\uff1f\u3010\u30d5\u30ed\u30fc\u30c1\u30e3\u30fc\u30c8\u3067\u4e00\u767a\u8a3a\u65ad\u3011<\/h2>\n<p>\n    \u672c\u984c\u306e\u524d\u306b<strong>\u7d50\u8ad6\u30b5\u30de\u30ea<\/strong>\u304b\u3089\u3002<br \/>\n    \u4e0b\u8a18\u30d5\u30ed\u30fc\u30c1\u30e3\u30fc\u30c8\u3067\u3001\u8981\u4ef6\u306b\u5408\u3046API\u9023\u643a\u30d1\u30bf\u30fc\u30f3\u3092\u77ac\u6642\u306b\u7d5e\u308a\u8fbc\u3081\u307e\u3059\u3002\n  <\/p>\n<pre><code>[\u30b9\u30bf\u30fc\u30c8]\r\n  \u2193\r\n[Q1: \u4e3b\u306a\u76ee\u7684\u306f\u30c7\u30fc\u30bf\u306e\u300c\u53d6\u5f97\u300d\u304b\u300c\u66f4\u65b0\u300d\u304b\uff1f]\r\n  \u251c\u2500\u2500 [\u53d6\u5f97] \u2192 [Q2: \u30e6\u30fc\u30b6\u30fc\u64cd\u4f5c\u306b\u5fdc\u3058\u305f\u983b\u7e41\u306a\u518d\u53d6\u5f97\u304c\u5fc5\u8981\u304b\uff1f]\r\n  \u2502             \u251c\u2500\u2500 [\u306f\u3044] \u2192 (A) Client Components (SWR\/React Query)\r\n  \u2502             \u2514\u2500\u2500 [\u3044\u3044\u3048] \u2192 (B) Server Components (fetch)\r\n  \u2514\u2500\u2500 [\u66f4\u65b0] \u2192 [Q3: \u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u7528\u306e\u516c\u958bAPI\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304c\u5fc5\u8981\u304b\uff1f]\r\n                \u251c\u2500\u2500 [\u306f\u3044] \u2192 (C) Route Handlers\r\n                \u2514\u2500\u2500 [\u3044\u3044\u3048] \u2192 (D) Server Actions\r\n<\/code><\/pre>\n<ul>\n<li><strong>(A) Client Components<\/strong>\u2026\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u6027\u91cd\u8996\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9UI\u306b<\/li>\n<li><strong>(B) Server Components<\/strong>\u2026\u30d6\u30ed\u30b0\u7b49\u3001\u9759\u7684\u306a\u521d\u56de\u8868\u793a\u306b<\/li>\n<li><strong>(C) Route Handlers<\/strong>\u2026Webhook\u3084\u5916\u90e8API\u7528\u306e\u660e\u793a\u7684\u306a\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306b<\/li>\n<li><strong>(D) Server Actions<\/strong>\u2026\u30d5\u30a9\u30fc\u30e0\u9001\u4fe1\u306a\u3069\u3001\u5185\u90e8\u5b8c\u7d50\u306e\u30c7\u30fc\u30bf\u66f4\u65b0\u306b<\/li>\n<\/ul>\n<p><strong>\u306a\u305c\u3053\u306e\u8a3a\u65ad\u306b\u306a\u308b\u306e\u304b\uff1f<\/strong>\u6b21\u7ae0\u304b\u3089\u300c\u73fe\u5834\u76ee\u7dda\u306e\u7406\u7531\u300d\u3068\u300c\u5b9f\u8df5\u30b3\u30fc\u30c9\u300d\u3067\u6df1\u6398\u308a\u3057\u307e\u3059\u3002<\/p>\n<hr \/>\n<h2>2. \u3069\u3046\u5909\u308f\u3063\u305f\uff1fApp Router\u306eAPI\u8a2d\u8a08\u3010RSC\u3068Server Actions\u306e\u5f79\u5272\u3011<\/h2>\n<h3>\u25a0 React Server Components\uff08RSC\uff09\u3068\u306f\uff1f<\/h3>\n<p>\n    \u30b5\u30fc\u30d0\u30fc\u3067\u76f4\u63a5<strong>fetch<\/strong>\u3057\u3001<strong>HTML<\/strong>\u3060\u3051\u3092\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3078\u8fd4\u305b\u307e\u3059\u3002<br \/>\n    <strong>\u30d0\u30f3\u30c9\u30eb\u30b5\u30a4\u30ba\u524a\u6e1b\u30fb\u521d\u671f\u8868\u793a\u306e\u9ad8\u901f\u5316<\/strong>\u3082\u5bb9\u6613\u306b\u3002\n  <\/p>\n<p>\n    \uff08React\u306e\u30b5\u30fc\u30d0\u30fc\u30fb\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u9055\u3044\u306b\u3064\u3044\u3066\u306f\u300e<a href=\"https:\/\/route-zero.com\/recruit\/route\/1229\/\" target=\"_blank\" rel=\"noopener\">React\u306euseState\u3068useEffect\u306e\u9055\u3044\u3068\u306f\uff1f\u521d\u5fc3\u8005\u304c\u5b9f\u52d9\u3067\u8ff7\u308f\u306a\u3044\u4f7f\u3044\u5206\u3051\u5b8c\u5168\u30ac\u30a4\u30c9<\/a\n    >\u300f\u3082\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\uff09\n  <\/p>\n<blockquote>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1aReact Server Components\uff08RSC\uff09<\/strong><br \/>\u30b5\u30fc\u30d0\u30fc\u3067\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3055\u308c\u308bReact\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306eJS\u8ca0\u8377\u3092\u6e1b\u3089\u3057\u3001SEO\u3084\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5411\u4e0a\u306b\u8ca2\u732e\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u30d0\u30f3\u30c9\u30eb\u30b5\u30a4\u30ba<\/strong><br \/>Web\u30a2\u30d7\u30ea\u306e\u914d\u4fe1\u6642\u306b\u307e\u3068\u3081\u3089\u308c\u308bJS\u3084CSS\u306a\u3069\u306e\u30d5\u30a1\u30a4\u30eb\u5bb9\u91cf\u3002\u5c0f\u3055\u3044\u307b\u3069\u8868\u793a\u304c\u901f\u304f\u306a\u308b\u3002<\/p>\n<\/blockquote>\n<h3>\u25a0 Server Actions\u306e\u30a4\u30f3\u30d1\u30af\u30c8<\/h3>\n<p>\n    \u30b5\u30fc\u30d0\u30fc\u4e0a\u306e<strong>\u95a2\u6570<\/strong>\u3092\u300c\u76f4\u63a5\u300d\u547c\u3073\u51fa\u305b\u308bRPC\u7684\u306a\u8a2d\u8a08\u3002<br \/>\n    \u30d5\u30a9\u30fc\u30e0\u9001\u4fe1\u7b49\u306e\u300c\u66f4\u65b0\u300d\u51e6\u7406\u3092\u3001<strong>API Route\u4e0d\u8981\uff06\u578b\u5b89\u5168<\/strong>\u306b\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002\n  <\/p>\n<p>\n    \uff08\u578b\u5b89\u5168\u306a\u30d5\u30a9\u30fc\u30e0\u8a2d\u8a08\u30fb\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u306f\u300e<a href=\"https:\/\/route-zero.com\/recruit\/route\/1683\/\" target=\"_blank\" rel=\"noopener\">TypeScript\u30d5\u30a9\u30fc\u30e0\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u5fb9\u5e95\u6bd4\u8f03\uff5cZod\u30fbYup\u30fbReact Hook Form\u306e\u9055\u3044\u3068\u9078\u3073\u65b9<\/a\n    >\u300f\u3082\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\uff09\n  <\/p>\n<blockquote>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u578b\u5b89\u5168<\/strong><br \/>\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u578b\uff08string, number\u306a\u3069\uff09\u304c\u6b63\u3057\u304f\u6271\u308f\u308c\u308b\u3053\u3068\u3067\u3001\u30d0\u30b0\u3084\u30a8\u30e9\u30fc\u3092\u672a\u7136\u306b\u9632\u3050\u8a2d\u8a08\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1aRPC<\/strong><br \/>Remote Procedure Call\u306e\u7565\u3002\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8d8a\u3057\u306b\u30b5\u30fc\u30d0\u30fc\u4e0a\u306e\u95a2\u6570\u3092\u76f4\u63a5\u547c\u3073\u51fa\u3059\u4ed5\u7d44\u307f\u3002<\/p>\n<\/blockquote>\n<p>\u3053\u306e2\u3064\u306e\u767b\u5834\u3067\u3001Pages Router\u6642\u4ee3\u306eAPI\u9023\u643a\u306e\u5e38\u8b58\u304c\u4e00\u5909\u3057\u307e\u3057\u305f\u3002<\/p>\n<hr \/>\n<h2>3. \u4e3b\u89814\u30d1\u30bf\u30fc\u30f3\u3092\u6bd4\u8f03\uff01\u3010\u73fe\u5834\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u3067\u89e3\u8aac\u3011<\/h2>\n<h3>\u25a0 3.1 Client Components\uff08SWR\/React Query\uff09\uff1a\u52d5\u7684UI\u5411\u3051<\/h3>\n<ul>\n<li><strong>\u3053\u3093\u306a\u3068\u304d\u6700\u9069\uff1a<\/strong> \u30c1\u30e3\u30c3\u30c8\u3084\u901a\u77e5\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u7ba1\u7406\u753b\u9762\u306a\u3069\u5373\u6642\u53cd\u5fdcUI<\/li>\n<li><strong>\u30e1\u30ea\u30c3\u30c8\uff1a<\/strong> <strong>useSWR<\/strong>\u7b49\u306e<strong>Hooks<\/strong>\u3067\u5ba3\u8a00\u7684\u306b\u30c7\u30fc\u30bf\u53d6\u5f97\u3002\u30ad\u30e3\u30c3\u30b7\u30e5\u3084\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u7ba1\u7406\u3082\u81ea\u52d5<\/li>\n<li><strong>\u30c7\u30e1\u30ea\u30c3\u30c8\uff1a<\/strong> <strong>\u30d0\u30f3\u30c9\u30eb\u30b5\u30a4\u30ba\u5897\u52a0<\/strong>\uff08\u30af\u30e9\u30a4\u30a2\u30f3\u30c8JS\u4f9d\u5b58\uff09\uff0f\u30e9\u30a4\u30d6\u30e9\u30ea\u4f9d\u5b58\u6027<\/li>\n<li><strong>\u30a2\u30f3\u30c1\u30d1\u30bf\u30fc\u30f3\uff1a<\/strong> \u9759\u7684\u306a\u521d\u56de\u8868\u793a\u3060\u3051\u306a\u3089Server Components\u304c\u9ad8\u901f\uff06\u7701\u30b3\u30b9\u30c8<\/li>\n<\/ul>\n<blockquote>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1aClient Components<\/strong><br \/>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\uff08\u30d6\u30e9\u30a6\u30b6\uff09\u5074\u3067\u52d5\u4f5c\u3059\u308bReact\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3002\u30e6\u30fc\u30b6\u30fc\u64cd\u4f5c\u306b\u5373\u6642\u53cd\u5fdc\u3067\u304d\u308b\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1aHooks<\/strong><br \/>React\u306e\u6a5f\u80fd\u62e1\u5f35API\u3002useState\u3084useEffect\u3001useSWR\u306a\u3069\u3001\u72b6\u614b\u7ba1\u7406\u3084\u526f\u4f5c\u7528\u51e6\u7406\u3092\u7c21\u5358\u306b\u8a18\u8ff0\u3067\u304d\u308b\u3002<\/p>\n<\/blockquote>\n<h3>\u25a0 3.2 Server Components\uff08fetch\uff09\uff1a\u30b7\u30f3\u30d7\u30eb\uff06\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069<\/h3>\n<ul>\n<li><strong>\u3053\u3093\u306a\u3068\u304d\u6700\u9069\uff1a<\/strong> \u30d6\u30ed\u30b0\u3084\u30cb\u30e5\u30fc\u30b9\u8a18\u4e8b\u306a\u3069\u201c\u9759\u7684\u306a\u521d\u671f\u30c7\u30fc\u30bf\u201d\u306e\u8868\u793a<\/li>\n<li><strong>\u30e1\u30ea\u30c3\u30c8\uff1a<\/strong> <strong>async\/await<\/strong>\u3067\u81ea\u7136\u306b\u30c7\u30fc\u30bf\u53d6\u5f97\u3002<strong>\u8d85\u8efd\u91cf\u30fb\u9ad8\u901f<\/strong>\u3002<strong>\u30ad\u30e3\u30c3\u30b7\u30e5\u5236\u5fa1<\/strong>\u304c\u67d4\u8edf\uff08<strong>next.revalidate<\/strong>\uff09<\/li>\n<li><strong>\u30c7\u30e1\u30ea\u30c3\u30c8\uff1a<\/strong> \u30e6\u30fc\u30b6\u30fc\u64cd\u4f5c\u306b\u3088\u308b\u518d\u53d6\u5f97\u306f\u30da\u30fc\u30b8\u9077\u79fbor\u518d\u8aad\u307f\u8fbc\u307f\u304c\u5fc5\u8981<\/li>\n<li><strong>\u30a2\u30f3\u30c1\u30d1\u30bf\u30fc\u30f3\uff1a<\/strong> \u30aa\u30fc\u30c8\u30b3\u30f3\u30d7\u30ea\u30fc\u30c8\u306a\u3069\u3001\u5373\u6642\u53cd\u5fdcUI\u306b\u306f\u975e\u63a8\u5968<\/li>\n<\/ul>\n<blockquote>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1aasync\/await<\/strong><br \/>JavaScript\u306e\u975e\u540c\u671f\u51e6\u7406\u3092\u76f4\u611f\u7684\u306b\u8a18\u8ff0\u3067\u304d\u308b\u69cb\u6587\u3002API\u53d6\u5f97\u3084\u30c7\u30fc\u30bf\u51e6\u7406\u3067\u591a\u7528\u3055\u308c\u308b\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1anext.revalidate<\/strong><br \/>Next.js\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u5236\u5fa1\u30aa\u30d7\u30b7\u30e7\u30f3\u3002\u6307\u5b9a\u79d2\u6570\u3054\u3068\u306b\u30c7\u30fc\u30bf\u3092\u518d\u53d6\u5f97\u3057\u3001\u6700\u65b0\u72b6\u614b\u3092\u4fdd\u3064\u3002<\/p>\n<\/blockquote>\n<h3>\u25a0 3.3 Route Handlers\uff08API Routes\uff09\uff1a\u660e\u793a\u7684\u306aAPI\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306b<\/h3>\n<ul>\n<li><strong>\u3053\u3093\u306a\u3068\u304d\u6700\u9069\uff1a<\/strong> Webhook\u53d7\u4fe1\u3084\u3001\u5916\u90e8\u30a2\u30d7\u30ea\u3078\u306eAPI\u63d0\u4f9b<\/li>\n<li><strong>\u30e1\u30ea\u30c3\u30c8\uff1a<\/strong> <strong>RESTful\u8a2d\u8a08<\/strong>\u3092Next.js\u3067\u5b9f\u73fe\u3002Webhook\u3084\u5916\u90e8\u9023\u643a\u306e\u300c\u5165\u308a\u53e3\u300d\u306b\u3082<\/li>\n<li><strong>\u30c7\u30e1\u30ea\u30c3\u30c8\uff1a<\/strong> \u5185\u90e8\u51e6\u7406\u306e\u307f\u306a\u3089Server Actions\u306e\u65b9\u304c\u30b7\u30f3\u30d7\u30eb\uff06\u578b\u5b89\u5168<\/li>\n<li><strong>\u30a2\u30f3\u30c1\u30d1\u30bf\u30fc\u30f3\uff1a<\/strong> \u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u306e\u5358\u7d14\u306a\u30c7\u30fc\u30bf\u66f4\u65b0\u306fServer Actions\u3078<\/li>\n<\/ul>\n<blockquote>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1aRESTful\u8a2d\u8a08<\/strong><br \/>Web API\u8a2d\u8a08\u306e\u6a19\u6e96\u3002\u30ea\u30bd\u30fc\u30b9\u3054\u3068\u306bURL\u3092\u5206\u3051\u3001HTTP\u30e1\u30bd\u30c3\u30c9\uff08GET\/POST\u306a\u3069\uff09\u3067\u64cd\u4f5c\u3059\u308b\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1aWebhook<\/strong><br \/>\u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u304b\u3089\u306e\u901a\u77e5\u3084\u30a4\u30d9\u30f3\u30c8\u3092\u53d7\u3051\u53d6\u308b\u4ed5\u7d44\u307f\u3002API\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3067\u53d7\u4fe1\u3059\u308b\u3002<\/p>\n<\/blockquote>\n<h3>\u25a0 3.4 Server Actions\uff1a\u578b\u5b89\u5168\uff06\u30e2\u30c0\u30f3\u306a\u30c7\u30fc\u30bf\u66f4\u65b0<\/h3>\n<ul>\n<li><strong>\u3053\u3093\u306a\u3068\u304d\u6700\u9069\uff1a<\/strong> \u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u3084\u300c\u3044\u3044\u306d\u300d\u30dc\u30bf\u30f3\u306a\u3069<\/li>\n<li><strong>\u30e1\u30ea\u30c3\u30c8\uff1a<\/strong> <strong>\u30b5\u30fc\u30d0\u30fc\u95a2\u6570\u3092\u76f4\u63a5\u547c\u3079\u308b<\/strong>\uff08API Route\u4e0d\u8981\uff09\u3002<strong>useFormState<\/strong>\u7b49\u3067\u30a8\u30e9\u30fc\u30fb\u72b6\u614b\u7ba1\u7406\u3082\u578b\u5b89\u5168\u3002JS\u7121\u52b9\u74b0\u5883\u3067\u3082\u9001\u4fe1\u53ef<\/li>\n<li><strong>\u30c7\u30e1\u30ea\u30c3\u30c8\uff1a<\/strong> \u8a2d\u8a08\u304c\u65b0\u3057\u304f\u6700\u521d\u306f\u5b66\u7fd2\u30b3\u30b9\u30c8\u3042\u308a\u3002\u300c\u66f4\u65b0\u300d\u51e6\u7406\u5411\u304d<\/li>\n<li><strong>\u30a2\u30f3\u30c1\u30d1\u30bf\u30fc\u30f3\uff1a<\/strong> \u5916\u90e8\u30a2\u30d7\u30ea\u7528\u306e\u6c4e\u7528API\u306fRoute Handlers\u3078<\/li>\n<\/ul>\n<blockquote>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1auseFormState<\/strong><br \/>Next.js\u306e\u30d5\u30a9\u30fc\u30e0\u72b6\u614b\u7ba1\u7406\u30d5\u30c3\u30af\u3002\u9001\u4fe1\u7d50\u679c\u3084\u30a8\u30e9\u30fc\u3092\u578b\u5b89\u5168\u306b\u6271\u3048\u308b\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1aJS\u7121\u52b9\u74b0\u5883<\/strong><br \/>JavaScript\u304c\u7121\u52b9\u306a\u30d6\u30e9\u30a6\u30b6\u3084\u7aef\u672b\u3067\u3082\u30d5\u30a9\u30fc\u30e0\u9001\u4fe1\u304c\u53ef\u80fd\u306a\u8a2d\u8a08\u3002<\/p>\n<\/blockquote>\n<hr \/>\n<h2>4. \u3059\u3050\u8a66\u305b\u308b\uff01\u3010\u5b9f\u8df5\u30b3\u30fc\u30c93\u9078\u3011<\/h2>\n<h3>\u25a0 4.1 \u8a8d\u8a3c\uff08Auth.js\uff09\u00d7 Server Components<\/h3>\n<p>\u30bb\u30c3\u30b7\u30e7\u30f3\u60c5\u5831\u3092\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u53d6\u5f97\u3057\u3001\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u308b\u9244\u677f\u30d1\u30bf\u30fc\u30f3\u3002<\/p>\n<p>\n    \uff08\u8a8d\u8a3c\u30fb\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406\u306e\u57fa\u790e\u306b\u3064\u3044\u3066\u306f\u300e<a href=\"https:\/\/route-zero.com\/recruit\/route\/1678\/\" target=\"_blank\" rel=\"noopener\">Spring Boot\u00d7OAuth2\u8a8d\u8a3c\u306e\u5168\u6bd4\u8f03\uff01\u73fe\u5834\u3067\u5931\u6557\u3057\u306a\u3044\u9078\u3073\u65b9\u3068\u306f\uff1f<\/a\n    >\u300f\u3082\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\uff09\n  <\/p>\n<pre><code>import { auth } from '@\/auth';\r\n\r\nexport default async function HomePage() {\r\n  const session = await auth();\r\n\r\n  return (\r\n    &lt;div&gt;\r\n      {session?.user ? (\r\n        &lt;h1&gt;\u3088\u3046\u3053\u305d, {session.user.name}\u3055\u3093&lt;\/h1&gt;\r\n      ) : (\r\n        &lt;h1&gt;\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u304f\u3060\u3055\u3044&lt;\/h1&gt;\r\n      )}\r\n    &lt;\/div&gt;\r\n  );\r\n}\r\n<\/code><\/pre>\n<h3>\u25a0 4.2 \u30d8\u30c3\u30c9\u30ec\u30b9CMS\uff08microCMS\uff09\u00d7 Server Components<\/h3>\n<p><code>fetch<\/code>\uff0b<code>next.revalidate<\/code>\u3067ISR\u3082\u624b\u8efd\u3002<\/p>\n<pre><code>type Props = { params: { id: string } };\r\n\r\nasync function getPost(id: string) {\r\n  const res = await fetch(\r\n    `https:\/\/YOUR_SERVICE_DOMAIN.microcms.io\/api\/v1\/blog\/${id}`,\r\n    {\r\n      headers: { 'X-MICROCMS-API-KEY': process.env.MICROCMS_API_KEY! },\r\n      next: { revalidate: 3600 },\r\n    }\r\n  );\r\n  return res.json();\r\n}\r\n\r\nexport default async function BlogPostPage({ params }: Props) {\r\n  const post = await getPost(params.id);\r\n\r\n  return (\r\n    &lt;article&gt;\r\n      &lt;h1&gt;{post.title}&lt;\/h1&gt;\r\n      &lt;div dangerouslySetInnerHTML={{ __html: post.content }} \/&gt;\r\n    &lt;\/article&gt;\r\n  );\r\n}\r\n<\/code><\/pre>\n<h3>\u25a0 4.3 Server Actions\uff0bZod\u3067\u578b\u5b89\u5168\u30d5\u30a9\u30fc\u30e0<\/h3>\n<p>\u5165\u529b\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u301c\u30a8\u30e9\u30fc\u8868\u793a\u307e\u3067\u300c\u578b\u5b89\u5168\u300d\u306b\u307e\u3068\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\n    \uff08TypeScript\u3084Zod\u306b\u3088\u308b\u578b\u5b89\u5168\u306a\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u306f\u300e<a href=\"https:\/\/route-zero.com\/recruit\/route\/1683\/\" target=\"_blank\" rel=\"noopener\">TypeScript\u30d5\u30a9\u30fc\u30e0\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u5fb9\u5e95\u6bd4\u8f03\uff5cZod\u30fbYup\u30fbReact Hook Form\u306e\u9055\u3044\u3068\u9078\u3073\u65b9<\/a\n    >\u300f\u3082\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\uff09\n  <\/p>\n<pre><code>\/\/ app\/actions.ts\r\n'use server';\r\nimport { z } from 'zod';\r\n\r\nconst FormSchema = z.object({\r\n  email: z.string().email('\u6709\u52b9\u306a\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002'),\r\n});\r\n\r\nexport async function submitForm(prevState: any, formData: FormData) {\r\n  const validatedFields = FormSchema.safeParse({\r\n    email: formData.get('email'),\r\n  });\r\n\r\n  if (!validatedFields.success) {\r\n    return { errors: validatedFields.error.flatten().fieldErrors };\r\n  }\r\n  \/\/ \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4fdd\u5b58\u51e6\u7406\u306a\u3069\r\n  return { message: '\u9001\u4fe1\u6210\u529f\uff01' };\r\n}\r\n<\/code><\/pre>\n<pre><code>\/\/ app\/contact-form.tsx\r\n'use client';\r\nimport { useFormState } from 'react-dom';\r\nimport { submitForm } from '.\/actions';\r\n\r\nconst initialState = { message: null, errors: {} };\r\n\r\nexport function ContactForm() {\r\n  const [state, dispatch] = useFormState(submitForm, initialState);\r\n\r\n  return (\r\n    &lt;form action={dispatch}&gt;\r\n      &lt;input type=\"email\" name=\"email\" \/&gt;\r\n      {state.errors?.email && &lt;p&gt;{state.errors.email[0]}&lt;\/p&gt;}\r\n      &lt;button type=\"submit\"&gt;\u9001\u4fe1&lt;\/button&gt;\r\n      {state.message && &lt;p&gt;{state.message}&lt;\/p&gt;}\r\n    &lt;\/form&gt;\r\n  );\r\n}\r\n<\/code><\/pre>\n<p>\u305c\u3072\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30da\u3057\u3066\u3001\u307e\u305a\u306f\u52d5\u304b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<hr \/>\n<h2>5. \u3088\u304f\u3042\u308b\u7591\u554f\u30fb\u3064\u307e\u305a\u304d\u3010FAQ\u3067\u5373\u89e3\u6c7a\u3011<\/h2>\n<ul>\n<li>\n      <strong>Q. CORS\u30a8\u30e9\u30fc\u306f\u306a\u305c\uff1f\u3069\u3053\u3067\u8d77\u304d\u308b\uff1f<\/strong><br \/>\n      <strong>Server Components<\/strong>\u3084<strong>Route Handlers<\/strong>\u3001<strong>Server Actions<\/strong\n      >\u304b\u3089\u5916\u90e8API\u3092\u547c\u3076\u5834\u5408\u306f\u3001<strong>\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u5b9f\u884c\u3055\u308c\u308b\u305f\u3081CORS\u30a8\u30e9\u30fc\u306f\u767a\u751f\u3057\u307e\u305b\u3093\u3002<\/strong>\u30cf\u30de\u308a\u3084\u3059\u3044\u306e\u306f<strong>Client Components<\/strong>\u304b\u3089\u5916\u90e8API\u76f4\u53e9\u304d\u306e\u3068\u304d\u3002\u3053\u306e\u5834\u5408\u306fRoute<br \/>\n      Handlers\u3067\u300c\u30d7\u30ed\u30ad\u30b7API\u300d\u3092\u4f5c\u308a\u3001\u5185\u90e8\u7d4c\u7531\u306b\u3059\u308b\u306e\u304c\u5b9a\u756a\u3067\u3059\u3002 <br \/>\uff08CORS\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u3068\u5bfe\u7b56\u306b\u3064\u3044\u3066\u306f\u300e<a href=\"https:\/\/route-zero.com\/recruit\/route\/1205\/\" target=\"_blank\" rel=\"noopener\">JavaScript\u3067CORS\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3068\u304d\u306e\u539f\u56e0\u3068\u5bfe\u51e6\u6cd5\u3092\u5fb9\u5e95\u89e3\u8aac<\/a\n      >\u300f\u3082\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\uff09\n    <\/li>\n<li>\n      <strong>Q. Server Actions\u304c\u3042\u308c\u3070Route Handlers\u306f\u4e0d\u8981\uff1f<\/strong><br \/>\n      <strong>No\uff01<\/strong> \u4e21\u8005\u306e\u68f2\u307f\u5206\u3051\u306f\u660e\u78ba\u3002<br \/>\n      \u30fb<strong>Server Actions<\/strong>\u2026Next.js\u30a2\u30d7\u30ea\u5185\u90e8\u306eUI\u8d77\u70b9\u306e\u30c7\u30fc\u30bf\u66f4\u65b0<br \/>\n      \u30fb<strong>Route Handlers<\/strong>\u2026Webhook\u53d7\u4fe1\u3084\u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u5411\u3051API<br \/>\n      \u73fe\u5834\u3067\u306f\u201c\u4e21\u65b9\u4f7f\u3044\u5206\u3051\u201d\u304c\u57fa\u672c\u3067\u3059\u3002\n    <\/li>\n<li>\n      <strong>Q. Server Actions\u3067\u6ce8\u610f\u3059\u3079\u304d\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306f\uff1f<\/strong><br \/>\n      <strong>CSRF<\/strong>\u306fNext.js\u304c\u81ea\u52d5\u3067\u4fdd\u8b77\u3002<br \/>\n      \u305f\u3060\u3057\u300c\u8a8d\u53ef\uff08Authorization\uff09\u300d\u2026\u3064\u307e\u308a<strong>\u305d\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u64cd\u4f5c\u3057\u3066\u3088\u3044\u304b\u306e\u6a29\u9650\u30c1\u30a7\u30c3\u30af<\/strong>\u306f\u3001<strong>\u958b\u767a\u8005\u81ea\u8eab\u304c\u5fc5\u305a\u5b9f\u88c5<\/strong>\u3057\u307e\u3057\u3087\u3046\u3002\n    <\/li>\n<li>\n      <strong>Q. \u30ad\u30e3\u30c3\u30b7\u30e5\u6226\u7565\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u306f\uff1f<\/strong><br \/>\n      <code>fetch<\/code>\u306e\u7b2c2\u5f15\u6570\u3067\u5236\u5fa1\u3002<br \/>\n      \u30fb<code>cache: 'no-store'<\/code>\u2026\u6bce\u56de\u53d6\u5f97<br \/>\n      \u30fb<code>next: { revalidate: \u79d2\u6570 }<\/code>\u2026ISR<br \/>\n      \u66f4\u65b0\u5f8c\u306f<code>revalidatePath<\/code>\u3084<code>revalidateTag<\/code>\u3067\u30aa\u30f3\u30c7\u30de\u30f3\u30c9\u7834\u68c4\u3082\u53ef\u80fd\u3002<br \/>\n      <br \/>\uff08API\u30ad\u30e3\u30c3\u30b7\u30e5\u3084fetch\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u306f\u300e<a href=\"https:\/\/route-zero.com\/recruit\/route\/1128\/\" target=\"_blank\" rel=\"noopener\">JavaScript\u306eAjax\u5b8c\u5168\u5165\u9580\uff5cfetch\u306e\u4f7f\u3044\u65b9\u30fbCORS\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u30fb\u975e\u540c\u671f\u901a\u4fe1\u306e\u57fa\u672c\u3092\u89e3\u8aac<\/a\n      >\u300f\u3082\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\uff09\n    <\/li>\n<li>\n      <strong>Q. Client\u3068Server Components\u9593\u306e\u30c7\u30fc\u30bf\u53d7\u3051\u6e21\u3057\u306f\uff1f<\/strong><br \/>\n      \u57fa\u672c\u306f<strong>props<\/strong>\u7d4c\u7531\u3067\u300c\u30b5\u30fc\u30d0\u30fc\u2192\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u300d\u3078\u6e21\u3057\u307e\u3059\u3002\u9006\u5411\u304d\uff08\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u2192\u30b5\u30fc\u30d0\u30fc\uff09\u306f<strong>Server Actions<\/strong>\u3084Route Handlers\u7d4c\u7531\u304c\u5b89\u5168\u3067\u3059\u3002\n    <\/li>\n<\/ul>\n<hr \/>\n<h2>\u307e\u3068\u3081\uff5cApp Router\u306eAPI\u8a2d\u8a08\u3067\u201c\u4e00\u6b69\u5148\u201d\u3078<\/h2>\n<p>\n    App Router\u6642\u4ee3\u306eAPI\u9023\u643a\u306f\u3001<strong>4\u3064\u306e\u4e3b\u5f79<\/strong>\u3092\u7406\u89e3\u3059\u308b\u306e\u304c\u6700\u77ed\u30eb\u30fc\u30c8\u3002<br \/>\n    \u30fb<strong>Server Components\uff08fetch\uff09<\/strong>\u2026\u9759\u7684\u30da\u30fc\u30b8\u306e\u57fa\u672c<br \/>\n    \u30fb<strong>Client Components\uff08SWR\/React Query\uff09<\/strong>\u2026\u52d5\u7684UI\u3067\u771f\u4fa1\u767a\u63ee<br \/>\n    \u30fb<strong>Route Handlers<\/strong>\u2026Webhook\u3084\u5916\u90e8API\u9023\u643a\u306e\u8981<br \/>\n    \u30fb<strong>Server Actions<\/strong>\u2026\u578b\u5b89\u5168\uff06\u30e2\u30c0\u30f3\u306a\u30c7\u30fc\u30bf\u66f4\u65b0<\/p>\n<p>    \u6700\u521d\u306f\u8ff7\u3063\u3066\u5f53\u7136\u3002\u3067\u3082\u3001<strong>\u305d\u308c\u305e\u308c\u306e\u5f97\u610f\u9818\u57df\u3055\u3048\u62bc\u3055\u3048\u308c\u3070\u3001\u8981\u4ef6\u3054\u3068\u306b\u201c\u8ff7\u308f\u305a\u9078\u3079\u308b\u201d\u81ea\u5206\u306b\u306a\u308c\u307e\u3059\u3002<\/strong><\/p>\n<p>    Next.js\u306f\u3053\u308c\u304b\u3089\u3082\u9032\u5316\u304c\u7d9a\u304d\u307e\u3059\u3002\u65b0\u3057\u3044\u6280\u8853\u3092\u30ad\u30e3\u30c3\u30c1\u30a2\u30c3\u30d7\u3057\u306a\u304c\u3089\u3001\u73fe\u5834\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3082\u4e00\u7dd2\u306b\u78e8\u3044\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>    \u305c\u3072\u4e00\u5ea6\u3001\u624b\u5143\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u5b9f\u8df5\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01\n  <\/p>\n<hr \/>\n<\/div>\n","protected":false},"featured_media":1820,"template":"","_links":{"self":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/route\/1819"}],"collection":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/route"}],"about":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/types\/route"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/media\/1820"}],"wp:attachment":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/media?parent=1819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}