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.