PageSourceSearch

https://www.yamatomichi.com/_next/static/chunks/pages/preview/cacheRenewal-acd1bef23a8ec0af.js

js yamatomichi.com collected 2026-09-24 09:25:13 UTC 6,434 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6061],{9772:e=>{e.exports={container:"cacheRenewal_container__5WXfg",header:"cacheRenewal_header__J2prb",warningBox:"cacheRenewal_warningBox__EsH8x",warningIcon:"cacheRenewal_warningIcon__ivemB",warningContent:"cacheRenewal_warningContent__zFxeU",solutionBox:"cacheRenewal_solutionBox__5ZD_K",main:"cacheRenewal_main__yVO2n",inputSection:"cacheRenewal_inputSection__IZ5tM",inputGroup:"cacheRenewal_inputGroup__wp8kp",label:"cacheRenewal_label__s6wsM",pathInput:"cacheRenewal_pathInput__oVwBa",revalidateButton:"cacheRenewal_revalidateButton__BMNWe",commonPaths:"cacheRenewal_commonPaths__izrem",pathButtons:"cacheRenewal_pathButtons__C68ms",pathButton:"cacheRenewal_pathButton__ceczz",results:"cacheRenewal_results__U6GI8",resultsList:"cacheRenewal_resultsList__oCxj6",resultItem:"cacheRenewal_resultItem__mGy_n",success:"cacheRenewal_success__5JcTV",error:"cacheRenewal_error__teuK_",resultHeader:"cacheRenewal_resultHeader__BlYA9",status:"cacheRenewal_status__INuNQ",timestamp:"cacheRenewal_timestamp__Z82Za",resultMessage:"cacheRenewal_resultMessage__ttgxr",instructions:"cacheRenewal_instructions__WFMPE"}},42217:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/preview/cacheRenewal",function(){return a(72672)}])},72672:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>h});var t=a(37876),n=a(14232),c=a(77328),l=a.n(c),r=a(9772),i=a.n(r);function h(){let[e,s]=(0,n.useState)(""),[a,c]=(0,n.useState)(!1),[r,h]=(0,n.useState)([]),o=async()=>{let a;if(!e.trim())return void alert("URLを入力してください");try{a=(e=>{let s=e.trim();try{let e=new URL(s);return e.pathname+e.search+e.hash}catch(e){throw Error("有効なURLを入力してください")}})(e)}catch(e){alert(e instanceof Error?e.message:"URLの形式が正しくありません");return}c(!0);try{let e=await fetch("/api/revalidate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:a,secret:"cache-revalidate-secret-key-2024"})}),t=await e.json(),n={success:t.revalidated,message:t.message,path:a,timestamp:new Date().toLocaleString("ja-JP")};h(e=>[n,...e.slice(0,9)]),t.revalidated&&s("")}catch(s){let e={success:!1,message:"エラー: ".concat(s instanceof Error?s.message:"Unknown error"),path:a,timestamp:new Date().toLocaleString("ja-JP")};h(s=>[e,...s.slice(0,9)])}finally{c(!1)}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l(),{children:[(0,t.jsx)("title",{children:"ISRキャッシュ更新 - 管理画面"}),(0,t.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,t.jsxs)("div",{className:i().container,children:[(0,t.jsxs)("header",{className:i().header,children:[(0,t.jsx)("h1",{children:"ISRキャッシュ更新"}),(0,t.jsx)("p",{children:"指定したページのキャッシュを手動で更新できます"}),(0,t.jsxs)("div",{className:i().warningBox,children:[(0,t.jsx)("div",{className:i().warningIcon,children:"⚠️"}),(0,t.jsxs)("div",{className:i().warningContent,children:[(0,t.jsx)("strong",{children:"重要な注意事項"}),(0,t.jsxs)("p",{children:["この機能はNextJS側のISRキャッシュのみを更新します。",(0,t.jsx)("br",{}),(0,t.jsx)("strong",{children:"CloudFrontのキャッシュは更新されません"}),"ので、実際の表示が変わらない場合があります。"]}),(0,t.jsxs)("div",{className:i().solutionBox,children:[(0,t.jsx)("strong",{children:"\uD83D\uDCCB 対処方法"}),(0,t.jsxs)("ol",{children:[(0,t.jsxs)("li",{children:[(0,t.jsx)("strong",{children:"CloudFrontキャッシュの有効期限を待つ"}),"(設定により異なる)"]}),(0,t.jsx)("li",{children:"有効期限が切れてから、この機能でISRキャッシュを更新する"}),(0,t.jsx)("li",{children:"または、AWSコンソールでCloudFrontの手動無効化を実行する"})]})]})]})]})]}),(0,t.jsxs)("main",{className:i().main,children:[(0,t.jsx)("section",{className:i().inputSection,children:(0,t.jsxs)("div",{className:i().inputGroup,children:[(0,t.jsx)("label",{htmlFor:"path",className:i().label,children:"更新するURL:"}
1),(0,t.jsx)("input",{id:"path",type:"url",value:e,onChange:e=>s(e.target.value),placeholder:"https://yamatomichi.com/journals/123",className:i().pathInput,disabled:a}),(0,t.jsx)("button",{onClick:o,disabled:a||!e.trim(),className:i().revalidateButton,children:a?"更新中...":"キャッシュを更新"})]})}),(0,t.jsxs)("section",{className:i().commonPaths,children:[(0,t.jsx)("h3",{children:"よく使用するURL:"}),(0,t.jsx)("div",{className:i().pathButtons,children:["https://yamatomichi.com/","https://yamatomichi.com/about","https://yamatomichi.com/journals","https://yamatomichi.com/news","https://yamatomichi.com/products","https://yamatomichi.com/community","https://yamatomichi.com/stores"].map(e=>(0,t.jsx)("button",{onClick:()=>s(e),className:i().pathButton,disabled:a,title:e,children:new URL(e).pathname||"/"},e))})]}),r.length>0&&(0,t.jsxs)("section",{className:i().results,children:[(0,t.jsx)("h3",{children:"実行履歴:"}),(0,t.jsx)("div",{className:i().resultsList,children:r.map((e,s)=>(0,t.jsxs)("div",{className:"".concat(i().resultItem," ").concat(e.success?i().success:i().error),children:[(0,t.jsxs)("div",{className:i().resultHeader,children:[(0,t.jsx)("span",{className:i().status,children:e.success?"✅ 成功":"❌ 失敗"}),(0,t.jsx)("span",{className:i().timestamp,children:e.timestamp})]}),(0,t.jsxs)("div",{className:i().resultMessage,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("strong",{children:"パス:"})," ",e.path]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("strong",{children:"結果:"})," ",e.message]})]})]},s))})]}),(0,t.jsxs)("section",{className:i().instructions,children:[(0,t.jsx)("h3",{children:"使用方法:"}),(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:"ブラウザのアドレスバーからURLをコピー&ペーストしてください"}),(0,t.jsx)("li",{children:"URL例: https://yamatomichi.com/journals/123"}),(0,t.jsx)("li",{children:"クエリパラメータやハッシュも含めて更新されます"}),(0,t.jsx)("li",{children:"よく使用するURLはボタンから選択できます"}),(0,t.jsx)("li",{children:"実行後、該当ページのキャッシュが更新されます"}),(0,t.jsx)("li",{children:"実行履歴で結果を確認できます"})]})]})]})]})]})}},77328:(e,s,a)=>{e.exports=a(29269)}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=42217)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.