{"id":69,"date":"2024-08-08T00:00:00","date_gmt":"2024-08-07T15:00:00","guid":{"rendered":"https:\/\/pusyuuwanko.com\/wordpress\/?p=69"},"modified":"2026-10-09T20:17:46","modified_gmt":"2026-10-09T11:17:46","slug":"%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88%e3%82%92%e3%81%86%e3%81%be%e3%81%8f%e6%89%b1%e3%81%88%e3%81%aa%e3%81%84","status":"publish","type":"post","link":"https:\/\/p-blog.pusyuuwanko.com\/index.php\/2024\/08\/08\/%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88%e3%82%92%e3%81%86%e3%81%be%e3%81%8f%e6%89%b1%e3%81%88%e3%81%aa%e3%81%84\/","title":{"rendered":"\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u3046\u307e\u304f\u6271\u3048\u306a\u3044"},"content":{"rendered":"<h1>NEXT.js \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u6271\u3044\u65b9<\/h1>\n<h2>\u8cea\u554f<\/h2>\n<p>NEXT.js 13\u4ee5\u964d\u3067 <code>getStaticProps<\/code> \u304c\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u306e\u304b\u3001\u307e\u305f\u4ee3\u7528\u65b9\u6cd5\u304c\u5b58\u5728\u3059\u308b\u306e\u304b\u3092\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u7528\u3044\u3066\u8abf\u3079\u308b\u306b\u306f\u3069\u3046\u3057\u305f\u3089\u3088\u3044\u304b\u77e5\u308a\u305f\u3044\u3067\u3059\u3002\u79c1\u306e\u5834\u5408\u3001\u305d\u306e\u307e\u307e\u60c5\u5831\u306e\u5c71\u306b\u57cb\u3082\u308c\u3066\u632b\u6298\u3057\u307e\u3059\u3002<\/p>\n<h2>\u56de\u7b54<\/h2>\n<p>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3084\u30ed\u30b0\u306b\u591a\u304f\u306e\u60c5\u5831\u304c\u3042\u308b\u3068\u3001\u9006\u306b\u6df7\u4e71\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u3001\u60c5\u5831\u3092\u6574\u7406\u3057\u3001\u5177\u4f53\u7684\u306b\u4f55\u3092\u3059\u308b\u3079\u304d\u304b\u3092\u660e\u78ba\u306b\u3059\u308b\u65b9\u6cd5\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>1. \u76ee\u7684\u3092\u518d\u78ba\u8a8d\u3059\u308b<\/h3>\n<p>\u5177\u4f53\u7684\u306b\u77e5\u308a\u305f\u3044\u3053\u3068\u3092\u518d\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u4f8b: \u300c<code>getStaticProps<\/code>\u306fNEXT.js 13\u4ee5\u964d\u3067\u3069\u3046\u306a\u3063\u305f\u306e\u304b\uff1f\u300d<\/li>\n<li>\u4f8b: \u300c\u4ee3\u308f\u308a\u306b\u4f55\u3092\u4f7f\u3048\u3070\u826f\u3044\u306e\u304b\uff1f\u300d<\/li>\n<\/ul>\n<h3>2. \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u4e3b\u8981\u90e8\u5206\u3092\u78ba\u8a8d\u3059\u308b<\/h3>\n<p>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u306f\u4ee5\u4e0b\u306e\u60c5\u5831\u304c\u5fc5\u8981\u3067\u3059:<\/p>\n<ul>\n<li><code>getStaticProps<\/code>\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u304b<\/li>\n<li><code>getStaticProps<\/code>\u306e\u4ee3\u66ff\u3068\u306a\u308b\u6a5f\u80fd\u3084\u65b9\u6cd5<\/li>\n<\/ul>\n<h3>3. \u5177\u4f53\u7684\u306a\u624b\u9806\u3067\u60c5\u5831\u3092\u63a2\u3059<\/h3>\n<ul>\n<li><strong>\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/strong>\u306e\u300cData Fetching\u300d\u30bb\u30af\u30b7\u30e7\u30f3\u3084\u300cAPI Reference\u300d\u30bb\u30af\u30b7\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u691c\u7d22\u6a5f\u80fd<\/strong>\u3092\u4f7f\u3063\u3066\u300c<code>getStaticProps<\/code>\u300d\u3084\u300cData Fetching\u300d\u3092\u691c\u7d22\u3057\u3001\u8a72\u5f53\u3059\u308b\u60c5\u5831\u3092\u63a2\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u30ea\u30ea\u30fc\u30b9\u30ce\u30fc\u30c8\u3084\u30d6\u30ed\u30b0<\/strong>\u3067\u6700\u8fd1\u306e\u5909\u66f4\u70b9\u3084\u65b0\u3057\u3044\u6a5f\u80fd\u306b\u3064\u3044\u3066\u8abf\u3079\u307e\u3059\u3002<\/li>\n<\/ul>\n<h3>4. \u5177\u4f53\u7684\u306a\u7591\u554f\u70b9\u3092\u89e3\u6c7a\u3059\u308b<\/h3>\n<ul>\n<li><strong><code>getStaticProps<\/code>\u306e\u30b5\u30dd\u30fc\u30c8\u72b6\u6cc1<\/strong>: NEXT.js 13\u4ee5\u964d\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u3001<code>getStaticProps<\/code>\u304c\u307e\u3060\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u4ee3\u66ff\u65b9\u6cd5<\/strong>: NEXT.js 13\u4ee5\u964d\u3067\u63a8\u5968\u3055\u308c\u308b\u30c7\u30fc\u30bf\u30d5\u30a7\u30c3\u30c1\u30f3\u30b0\u65b9\u6cd5\uff08\u4f8b\u3048\u3070\u3001<code>getServerSideProps<\/code>\u3084\u65b0\u3057\u3044<code>app<\/code>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u6a5f\u80fd\uff09\u306b\u3064\u3044\u3066\u8abf\u3079\u307e\u3059\u3002<\/li>\n<\/ul>\n<h3>5. \u53c2\u8003\u30ea\u30bd\u30fc\u30b9\u3092\u5229\u7528\u3059\u308b<\/h3>\n<ul>\n<li><strong>\u516c\u5f0f\u30d5\u30a9\u30fc\u30e9\u30e0\u3084\u30b3\u30df\u30e5\u30cb\u30c6\u30a3<\/strong>: <a href=\"https:\/\/github.com\/vercel\/next.js\/discussions\">NEXT.js\u306e\u516c\u5f0f\u30d5\u30a9\u30fc\u30e9\u30e0<\/a>\u3067\u8cea\u554f\u3084\u8b70\u8ad6\u3092\u63a2\u3057\u3066\u307f\u308b\u3002<\/li>\n<li><strong>GitHub Issues<\/strong>: \u4ed6\u306e\u958b\u767a\u8005\u304c\u5831\u544a\u3057\u3066\u3044\u308b\u554f\u984c\u3084\u305d\u306e\u89e3\u6c7a\u65b9\u6cd5\u304c\u66f8\u304b\u308c\u3066\u3044\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<h3>6. \u5b9f\u8df5\u3068\u8a66\u884c\u932f\u8aa4<\/h3>\n<p>\u5b9f\u969b\u306b\u30b3\u30fc\u30c9\u3092\u8a66\u3057\u3066\u307f\u308b\u3053\u3068\u3067\u3001\u7406\u8ad6\u7684\u306b\u7406\u89e3\u3057\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u65b0\u3057\u3044\u65b9\u6cd5\u3067\u306e\u30c7\u30fc\u30bf\u30d5\u30a7\u30c3\u30c1\u30f3\u30b0\u3092\u8a66\u3057\u3066\u307f\u308b\u3068\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u5185\u5bb9\u304c\u5b9f\u969b\u306b\u3069\u3046\u9069\u7528\u3055\u308c\u308b\u304b\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<h3>\u5177\u4f53\u7684\u306a\u30a2\u30af\u30b7\u30e7\u30f3<\/h3>\n<ol>\n<li><strong>NEXT.js\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/strong>\u306e<a href=\"https:\/\/nextjs.org\/docs\/app\/building-your-application\/data-fetching\">Data Fetching<\/a>\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u300cgetStaticProps\u300d<\/strong>\u304c\u6271\u308f\u308c\u3066\u3044\u308b\u304b\u3001\u307e\u305f\u305d\u306e\u4ee3\u66ff\u65b9\u6cd5\u304c\u66f8\u304b\u308c\u3066\u3044\u308b\u30bb\u30af\u30b7\u30e7\u30f3\u3092\u63a2\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u95a2\u9023\u3059\u308b\u30ea\u30ea\u30fc\u30b9\u30ce\u30fc\u30c8<\/strong>\u3084<strong>\u30d6\u30ed\u30b0\u8a18\u4e8b<\/strong>\u3092\u78ba\u8a8d\u3057\u3066\u3001\u6700\u8fd1\u306e\u5909\u66f4\u3084\u63a8\u5968\u3055\u308c\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7406\u89e3\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<p>\u3053\u308c\u3067\u3001\u60c5\u5831\u3092\u6574\u7406\u3057\u3001\u5fc5\u8981\u306a\u77e5\u8b58\u3092\u5f97\u308b\u624b\u52a9\u3051\u306b\u306a\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u3082\u3057\u3055\u3089\u306b\u5177\u4f53\u7684\u306a\u30b5\u30dd\u30fc\u30c8\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001\u304a\u6c17\u8efd\u306b\u8cea\u554f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u3046\u307e\u304f\u6271\u3048\u306a\u304f\u3066ChatGPT\u306b\u805e\u3044\u3066\u307f\u305f\u306e\u3067\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/p-blog.pusyuuwanko.com\/index.php\/2024\/08\/08\/%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88%e3%82%92%e3%81%86%e3%81%be%e3%81%8f%e6%89%b1%e3%81%88%e3%81%aa%e3%81%84\/\">Continue reading<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-isami-service"],"_links":{"self":[{"href":"https:\/\/p-blog.pusyuuwanko.com\/index.php\/wp-json\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/p-blog.pusyuuwanko.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-blog.pusyuuwanko.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-blog.pusyuuwanko.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/p-blog.pusyuuwanko.com\/index.php\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":1,"href":"https:\/\/p-blog.pusyuuwanko.com\/index.php\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":70,"href":"https:\/\/p-blog.pusyuuwanko.com\/index.php\/wp-json\/wp\/v2\/posts\/69\/revisions\/70"}],"wp:attachment":[{"href":"https:\/\/p-blog.pusyuuwanko.com\/index.php\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-blog.pusyuuwanko.com\/index.php\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-blog.pusyuuwanko.com\/index.php\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}