[{"data":1,"prerenderedAt":379},["ShallowReactive",2],{"project-42198611":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":29,"sentiment":30,"stance_mix":31,"scored_comments":36,"aspects":37,"strip":47,"post_text":48,"what":49,"said":96,"maker_in_thread":191,"shape":193,"grid":197,"attempts":341,"same_week":342,"maker_shows":335,"maker_hidden":372,"reader_version":373,"card":374},"42198611","OpenNext","Self-Host Next.js in Production","title","Show HN: Self-Host Next.js in Production","https:\u002F\u002Fgithub.com\u002Fopennextjs\u002Fopennextjs-aws","github.com","vednig",1732140474,2024,95,57,870,3515,25,"notable","infrastructure","serverless deployment","library",[24,25,26,27,28],"next.js","serverless","self-host","aws lambda","opennext","curious",0.03,{"positive":32,"neutral":33,"mixed":34,"critical":35},8,20,1,5,34,{"idea":38,"execution":41,"docs":42,"performance":44,"pricing":45,"design":46},{"positive":39,"critical":40},3,2,{"positive":40,"critical":34},{"positive":43,"critical":43},0,{"positive":40,"critical":43},{"positive":43,"critical":40},{"positive":34,"critical":43},[39,39,35,39,39,39,39,35,43,43,43,43,43,43,35,43,39,43,43,43,43,35,39,43,39,34,39,39,39,34,39,43,39,39,39,34,35,34,35,39],null,{"problem":50,"audience":66,"pricing":48,"motivation":77,"time_to_build":48,"stack":84,"openness":93,"stage":94,"team_size":95},{"value":51,"source":52,"evidence":53},"Running Next.js apps in a serverless environment outside Vercel","commenter",[54,58,62],{"id":55,"by":56,"text":57},"42199156","jeremy_k","I believe the intent of OpenNext is to allow you to run your Next.js applications in a serverless manner, same as Vercel.",{"id":59,"by":60,"text":61},"42199207","grrowl","You can \"self-host\" as in `next build` and `next serve`, but it runs as a monolothic runtime. Next-on-vercel compiles each api route to a serverless function and supports various…",{"id":63,"by":64,"text":65},"42199253","leerob","(I work on Next.js) The OpenNext project serves two purposes. First, it was to document some of the quirks when self-hosting Next.js. As of Next.js 15, the majority of these have…",{"value":67,"source":68,"evidence":69},"Teams hosting Next.js apps outside Vercel","inferred",[70,74],{"id":71,"by":72,"text":73},"42199340","greyskull","In the company I just left, I actually went through the process two or so months ago of migrating their Vercel deployment to AWS. I evaluated several options that are listed on…",{"id":75,"by":72,"text":76},"42199421","The biggest cost for us on Vercel (several hundred dollars a month) was Image Optimization, and that was because the app was being majorly inefficient with images, in part due to…",{"value":78,"source":52,"evidence":79},"Give Next.js apps a serverless deployment path like Vercel's",[80,81],{"id":63,"by":64,"text":65},{"id":82,"by":72,"text":83},"42199501","It offers packaging for deploying to a serverless environment (e.g. Lambda) analogous to how Vercel does it. The last question is salient, and it's possible for OpenNext to break…",[85,89],{"value":86,"source":52,"evidence":87},"Next.js",[88],{"id":63,"by":64,"text":65},{"value":90,"source":52,"evidence":91},"AWS Lambda",[92],{"id":82,"by":72,"text":83},"open_source","launched","unknown",{"praise":97,"objections":114,"requests":134,"questions":146,"alternatives":161},[98,103],{"value":99,"source":52,"evidence":100},"Low-pain migration off Vercel and cheaper bills",[101,102],{"id":71,"by":72,"text":73},{"id":75,"by":72,"text":76},{"value":104,"source":52,"evidence":105},"Useful for teams that want to leave Vercel",[106,110],{"id":107,"by":108,"text":109},"42199158","taikon","The reason this project is important is because Next.js is hard to deploy if you're not using Vercel to host your app. You can easily run into issues that are hard to resolve.…",{"id":111,"by":112,"text":113},"42199449","slashnode","I've been surprised by the number of companies adopting nextjs as their defacto framework without concern for the uncomfortable reality that the framework is built to be hosted…",[115,123,130],{"value":116,"source":52,"evidence":117},"Next.js is built to favour Vercel; self-hosting has limitations",[118,122],{"id":119,"by":120,"text":121},"42226390","0xblinq","Using Next.js for self hosting is a really bad idea in my opinion (and experience). Despite of what they say (for obvious marketing reasons) their framework is optimized and…",{"id":111,"by":112,"text":113},{"value":124,"source":52,"evidence":125},"Tied to SST and CDK users have to maintain a different IaC tool",[126],{"id":127,"by":128,"text":129},"42199912","bilalq","This in interesting, but while OpenNext is agnostic about the hosting layer, it seems opinionated about the IaC layer. SST is great, but I still use CDK for everything and have…",{"value":131,"source":52,"evidence":132},"Compatibility may lag behind Next.js updates",[133],{"id":82,"by":72,"text":83},[135,139],{"value":136,"source":52,"evidence":137},"Support for other IaC tools beyond SST",[138],{"id":127,"by":128,"text":129},{"value":140,"source":52,"evidence":141},"Edge hosting option on V8, Deno or Bun",[142],{"id":143,"by":144,"text":145},"42198981","Onavo","Any plans to add support for? https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fllrt It would also be nice to have a V8\u002Fdeno\u002Fbun based edge hosting option that supports the Next.js edge and middleware…",[147,154],{"value":148,"source":52,"evidence":149},"What infrastructure does it deploy and how is it secured",[150],{"id":151,"by":152,"text":153},"42199246","afro88","This is great, but my first question is: what is the infrastructure deployed? Is this a cool resume filler, or is it a serious alternative to Vercel? Seeing something around the…",{"value":155,"source":52,"evidence":156},"How it compares to serverless containers like Cloud Run",[157],{"id":158,"by":159,"text":160},"42199804","CharlieDigital","How would it compare to running as serverless containers (rather than ECS) like Google Cloud Run or Azure Container Apps (true scale to 0)? It seems like using serverless…",[162,173,180],{"value":163,"source":52,"evidence":164},"Self-hosting Next.js on a Node server or Docker",[165,169],{"id":166,"by":167,"text":168},"42199068","Etheryte","I haven't really followed Next.js and the related ecosystem closely, what does this project do exactly? If I look at Next.js docs [0], they have three options for self-hosting:…",{"id":170,"by":171,"text":172},"42200321","dawnerd","Confused as well since we self host in docker and it's no different than any other node app. People keep posting that there's gotchas and weird setups but... it just works well…",{"value":174,"source":52,"evidence":175},"Cloudflare next-on-pages",[176],{"id":177,"by":178,"text":179},"42199694","hi_hi","To clarify in the specific case of deploying to cloudflare workers, you can use cloudflares next-on-pages at the expense of a constrained \"Edge\" runtime. -…",{"value":181,"source":52,"evidence":182},"Remix and React Router",[183,187],{"id":184,"by":185,"text":186},"42200238","pier25","> especially given the CTO's desire to also migrate off of Next.js To Remix?",{"id":188,"by":189,"text":190},"42199951","willsmith72","Remix is growing, and when react router 7 lets you add SSR into any react SPA, I would guess next's market share will slowly shrink in part for that reason",{"comments":43,"answered":43,"key":192},[],{"commenters":194,"max_depth":35,"maker_replies":43,"first_comment_mins":195,"lifespan_hours":196},39,45,81,[198,200,201,203,204,208,211,215,216,220,223,225,229,231,234,237,239,240,242,244,245,249,252,254,257,260,263,266,269,272,274,277,281,282,285,286,288,291,294,295,296,298,301,303,306,308,309,311,316,317,320,322,325,327,329,333,337],[166,43,39,199,167,43],"project\u002Fneutral\u002Fidea",[55,43,39,199,56,43],[107,43,35,202,108,43],"project\u002Fpositive\u002Fidea",[63,43,39,199,64,43],[205,43,39,206,207,43],"42199752","project\u002Fneutral\u002Fexecution","atlex2",[209,43,39,210,64,43],"42200016","project\u002Fneutral\u002Fdocs",[212,43,43,213,214,43],"42200697","other\u002Fneutral\u002Fnone","inlined",[59,43,39,199,60,43],[217,43,39,218,219,43],"42200038","project\u002Fneutral\u002Fnone","dvnguyen",[221,43,39,218,222,43],"42200523","presentation",[71,43,35,224,72,43],"project\u002Fpositive\u002Fexecution",[226,43,43,227,228,43],"42199868","commenter\u002Fneutral\u002Fnone","kcrwfrd_",[230,43,43,227,72,43],"42200927",[232,43,43,213,233,43],"42202182","mdhb",[235,43,43,227,236,43],"42202437","arez",[238,43,43,227,228,43],"42208894",[184,43,43,213,185,43],[241,43,43,227,72,43],"42200926",[243,43,43,213,120,43],"42226427",[170,43,35,224,171,43],[246,43,35,247,248,43],"42200417","project\u002Fpositive\u002Fperformance","willio58",[250,34,43,213,251,43],"42199879","hysan",[111,40,39,253,112,43],"project\u002Fmixed\u002Fidea",[255,40,43,227,256,43],"42199660","threetonesun",[258,40,43,227,259,43],"42200844","anonzzzies",[261,40,43,213,262,43],"42199710","jmathai",[264,40,43,265,259,43],"42200835","other\u002Fneutral\u002Fidea",[267,40,43,227,268,43],"42199736","e-clinton",[270,40,43,227,271,43],"42199897","nicce",[273,40,43,227,259,43],"42200841",[275,40,35,247,276,43],"42199910","switz",[278,40,39,279,280,43],"42202659","project\u002Fneutral\u002Fperformance","dbbk",[188,40,43,213,189,43],[283,40,43,227,284,43],"42200008","paxys",[177,39,39,210,178,43],[287,39,43,227,280,43],"42202666",[119,289,34,290,120,43],4,"project\u002Fcritical\u002Fidea",[292,35,39,199,293,43],"42199081","syndicatedjelly",[82,35,39,199,72,43],[158,35,39,199,159,43],[297,35,39,218,72,43],"42200894",[127,299,34,300,128,43],6,"project\u002Fcritical\u002Fexecution",[143,302,39,279,144,43],7,[304,302,39,218,305,43],"42199046","thdxr",[307,302,43,227,144,43],"42199057",[151,32,39,218,152,43],[310,32,39,210,72,43],"42199451",[312,313,39,314,315,43],"42199044",9,"project\u002Fneutral\u002Fpricing","jonplackett",[75,313,39,314,72,43],[318,313,34,319,293,43],"42199610","project\u002Fcritical\u002Fpricing",[321,313,43,227,72,43],"42200834",[323,313,35,324,315,43],"42202396","project\u002Fpositive\u002Fdesign",[326,313,34,319,280,43],"42202675",[328,313,43,227,72,43],"42216871",[330,331,35,202,332,43],"42199162",10,"theogravity",[334,335,35,202,336,43],"42200094",11,"rc_kas",[338,339,34,290,340,43],"42200041",12,"revskill",[],[343,348,353,358,363,367],{"id":344,"name":345,"points":346,"category":347},"42156977","lanparty.house",1117,"consumer_social",{"id":349,"name":350,"points":351,"category":352},"42174829","FastGraphRAG",457,"ai",{"id":354,"name":355,"points":356,"category":357},"42185668","Black Hole Vision",316,"creative",{"id":359,"name":360,"points":361,"category":362},"42173119","Tips.io",291,"dev_tools",{"id":364,"name":365,"points":366,"category":362},"42197754","Trailimap",279,{"id":368,"name":369,"points":370,"category":371},"42149044","closing.wtf",273,"finance_crypto",false,"v2",{"id":375,"name":5,"line":6,"ai":372,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":30,"top":18,"kw":376,"maker":11,"domain":10,"tier":19,"attempts":43,"strip":377,"url":9,"mix":378,"praise":99,"objection":116,"sub":21},42198611,[24,25,26,27,28],"3353333500000050300005303133313033315153",[32,33,34,35],1793991105586]