[{"data":1,"prerenderedAt":271},["ShallowReactive",2],{"Categories":3,"NavIndexCategoriesCountFooter":206,"content-\u002F2022\u002F02\u002F19\u002Fmigrating-to-nextjs":207},[4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,68,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205],{"category":5},"System Administration",{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},"Software Development",{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":27},{"category":27},{"category":67},"Drones & RC",{"category":69},"DIY Projects",{"category":67},{"category":72},"Photography",{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":67},{"category":67},{"category":72},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":5},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":67},{"category":67},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":72},{"category":67},{"category":138},"3D Printing - Laser Cutting - CNC",{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":5},{"category":138},{"category":27},{"category":27},{"category":138},{"category":138},{"category":72},{"category":158},"Photography,3D Printing - Laser Cutting - CNC",{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":67},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":181},"Home Assistant",{"category":181},{"category":72},{"category":27},{"category":27},{"category":72},{"category":138},{"category":5},{"category":72},{"category":72},{"category":138},{"category":27},{"category":181},{"category":5},{"category":181},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":27},194,{"id":208,"title":209,"body":210,"category":27,"date":254,"description":216,"embedImage":255,"extension":256,"image":255,"intro":257,"meta":258,"navigation":259,"path":260,"seo":261,"series":255,"sitemap":262,"stem":263,"tags":264,"__hash__":270},"content\u002F2022\u002F02\u002F19\u002Fmigrating-to-nextjs.md","Migrating to next.js",{"type":211,"value":212,"toc":250},"minimark",[213,217,220,223,226,229,232,235,247],[214,215,216],"p",{},"I've been using gatsby as the generator engine for two sites since 2018.",[214,218,219],{},"It's worked very well - powerful and flexible.",[214,221,222],{},"But - I've always stuggled with keeping it up to date. There are so many packages and plugins and something always breaks.",[214,224,225],{},"So - now I was faced with a v2 to v4 two step major update.",[214,227,228],{},"It appeared to go well - most things just worked - but - there are some oddities that I can't find out about.",[214,230,231],{},"Some of the power in gatsby is its graphql support - and - it seems now that this is overkill for what I need.",[214,233,234],{},"I decided to make a jump over to next.js to try that out - again - just as a static site generator.",[214,236,237,238,242,243,246],{},"Imopressions so far are that it is simpler to work with. Static pages are static pages. Dynamic pages each provide their \"here is the list of the pages I can be\" via a call to ",[239,240,241],"code",{},"getStaticPaths"," and provide the display content via a call to ",[239,244,245],{},"getStaticProps",".",[214,248,249],{},"Beyond that - the logic is mine - and I don't need a lot of that. The rest is all just simple react functional components.",{"title":251,"searchDepth":252,"depth":252,"links":253},"",2,[],"2022-02-19 12:23 +0100",null,"md","Moving platform for a static site from gatsby to next.js",{},true,"\u002F2022\u002F02\u002F19\u002Fmigrating-to-nextjs",{"title":209,"description":216},{"loc":260},"2022\u002F02\u002F19\u002Fmigrating-to-nextjs",[265,266,267,268,269],"javascript","react","gatsby","nextjs","migration","1Xgm8PacRtoC3HrLAJGbJD4_BB_GX3_pACNCqEAL7OE",1780861997327]