LX Web Frontend Night: Unleash Next.js é²ç» https://www.youtube.com/watch?v=uc-GgjE_G4g&t=216s https://github.com/LayerXcom/next-navigation-guard â¦
ã¯ããã« æè¿ãNext.jsãTypeScriptãTailwind CSSã使ã£ã¦æè¡ããã°ãç«ã¡ä¸ãã¾ãããï¼ã¾ã ãã¾ãæ´æ°ã¯é²ãã§ãã¾ãããâ¦ï¼ ãã®ããã¸ã§ã¯ããéãã¦æ§ç¯ããéçºç°å¢ãããã¨å¿«é©ã ã£ãã®ã§ã誰ãã®åèã«ãªããããããªãã¨è¨äºãæ¸ãã¦ã¿ããã¨ã«ãã¾ããã ã§ããéããããããã詳細ãªèª¬æãå¿ããã¾ãããããã®çµæãè¨äºã®ããªã¥ã¼ã ã大ãããªã£ã¦ãã¾ãã¾ãããé·æã§ãããèå³ã®ããæ¹ã¯ãã²èªãã§ã¿ã¦ãã ããð ã¾ãããã®è¨äºå ã§ç´¹ä»ããå 容ãã»ããã¢ãããããªãã¸ããªãå ¬éãã¦ãã¾ãã Next.jsã®ãã¤ã©ã¼ãã¬ã¼ãã¨ãã¦æ´»ç¨å¯è½ã§ãã®ã§ãèå³ã®ããæ¹ã¯ãã²è¦ãã¦ã¿ã¦ãã ããã
å®æ½ããã㨠ä»åã¯Dockerã§Next.jsã®ç°å¢æ§ç¯ãè¡ãã¾ããããã®å 容ããªãã¹ãDockeråå¿è ã§ãããããããããã«è§£èª¬ãã¦ããããã¨æãã¾ããããã¾ã§é£ããå 容ã§ã¯ãªãã¨æãã®ã§ãä»åä½æããã³ã¼ãã¯æ°è»½ã«ä½¿ã£ã¦ããããã°ã¨æãã¾ãï¼ ä»åã®èæ¯ï¼èå³ããªã人ã¯é£ã°ãã¦ãã ããï¼ æ®æ®µNext.jsãå人éçºã§ä½¿ç¨ããéã¯ãDockerã¯ä½¿ç¨ãã¦ãã¾ããã§ãããã¨ããã®ããvoltaã¨ããnode.jsã®ãã¼ã¸ã§ã³ç®¡çãã¼ã«ã使ç¨ãã¦ããã®ã§ãã¢ããªãã¨ã§nodeã®ãã¼ã¸ã§ã³ãç°ãªã£ã¦ãããã³ãåºãã°åæã«nodeã®ãã¼ã¸ã§ã³ãåãæ¿ãããããã¨ããããDocker使ããªãã¦ãããããªã¨æã£ã¦ãã¾ãããã¾ã åããã¼ã¸ã§ã³ã®nodeãã使ã£ããã¨ããªãã®ã§ããã®æ©è½ãå®æã¯ãã¦ããªãã®ã§ããããã®ãããèå³ãããæ¹ã¯ä»¥ä¸ãªã³ã¯ãåèã«ãã¦ã¿ã¦ãã ããã Voltaã解説ï¼æé
æ¦è¦ Next.js 9.3ãã getServerSideProps ã¨ããä»çµã¿ãå°å ¥ããã¾ããã ä¸è¨ããã®ããã¥ã¡ã³ãã§ããããããèªãã§æåããç§ã¯ã¤ãèªããããªã£ã¦ãã¾ãã¾ãããç§æ ãå¤åã«å«ã¾ãã¦ããã¾ããããããããè¦ç¹ããããã ãããã«è¦ã¦ããã ããã°ã¨æãã¾ãã åèªèº«ã¯ãSEOããã¾ãæ°ã«ããªãããããSPAã£ã½ãWebãã¼ã¸ã®Next.jsã§ã®éçºã1å¹´ã¡ãããããæ¥åã§ãã£ã¦ãã¦ãä»ãNext.jsã¦ã¼ã¶ã¼ã§ãã ãgetServerSidePropsã£ã¦ä½ãè¯ãã®ï¼ãªãã§çã¾ããã®ï¼ã ããªãã§getInitialPropsã¯éæ¨å¥¨ãªã®ï¼ã ãVercel製ã®SWRã£ã¦ã©ã¤ãã©ãªãããã©ãããä½ï¼ã ãã¦ãgetServerSidePropsã¨SWRã£ã¦é¢ä¿ããã®ï¼ã ãã®è¾ºã®çåããæã¡ã®Next.jsã¦ã¼ã¶ã¼ã®æ¹ã¯æ¯éãä¸èªãã ããã â»éå°ãªç ½ãã¿ã¤ãã«ã§
ã¢ã¡ãªã«çºã®D2Cã¹ã¿ã¼ãã¢ããRamen Heroããã©ã®ããã«ãã¦ãªã³ã©ã¤ã³ã·ã§ããããªãã¥ã¼ã¢ã«ããã®ããèæ¯ãçµç·¯ãå«ãã¦ç´¹ä»ãã¾ãã ãã®è¨äºã«ã¤ãã¦ä»¥ä¸ã®ãããªæ¹ã ã«ã¨ã£ã¦ãå°ãã¯ãå½¹ç«ã¡ã§ããå 容ã«ãªã£ã¦ãããã¨æãã¾ãã ã»D2Cãµã¼ãã¹éå¶ã«é¢ããæ¹ ã»ãªã³ã©ã¤ã³ã·ã§ããéå¶ã«é¢ããæ¹ ã»Shopifyãå©ç¨ãã¦ããæ¹ ã»ï¼ç¹ã«ãã¹ã¿ã¼ãã¢ããã®ï¼ã¨ã³ã¸ãã¢ã®æ¹ ã¯ããã«ããã«ã¡ã¯ãRamen Heroã§ãªã¼ãã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢ããã£ã¦ããyuyaï¼Twitterï¼ã§ãã Ramen Heroã¯ããµã³ãã©ã³ã·ã¹ã³ ãã¤ã¨ãªã¢ãæ ç¹ã¨ãããã¼ãç³»D2Cã¹ã¿ã¼ãã¢ããã§ãã ã¢ã¡ãªã«å ¨åï¼ä¸é¨å°åãé¤ãï¼ã«æ¬æ ¼çãªã©ã¼ã¡ã³ãå·åã§é éãã¦ãã¾ãã Ramen Heroã«ã¤ãã¦ã®è©³ãã説æã¯ãã¡ãã®è¨äºãåç §ãã¦ãã ããã ç§éã®ãªã³ã©ã¤ã³ã·ã§ããã¯2020å¹´ã®4æã«ãã©ã³
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}