Hello everyone, we're the team from Next.js and we're hosting an AMA!
We'll be answering your questions live from April 09, 03:00 PM GMT onwards and we're super excited to chat with you! Topics we'll cover include but not limited to:
Nanji Zhao
Develop Top React App
Hi can I ask why when i call this one
Router.push( '/about?id=1234','/about')
the id cant be retrieve, and the page i am using is [...index].js, but if I direct to other page that is not dynamic one it can work properly example car.js push to vehicle.js..
Hi Team,
Thank you for the AMA and thank you for Nextjs. It's great framework to work with.
I'm always curious to develop something like a library/framework or at least be a part of the contribution through Open Source (GitHub). But I feel it tough to understand the code and get started with the development. What am I doing wrong? And how can I make myself better? I really wanted to learn stuff and help people through my software. Thanks!
Hi Tim and Joe.
I'm currently working on renovating one of our commercial websites to next.js, one of the most difficult things that I have found to work is with i18n to support slug routes, we have already solved using the custom server approach but I still feeling it like a hacky way of doing it. Do you have any plans to support i18n for pages? What do you recommend when the custom server approach is used?
What's happening with the zeit/next-plugins repo? There's not been an update in a good few months and some of them could do with some TLC.
Keep up the good work.
What are some good use cases for using SSR vs CSR where it makes a significant difference?
How do you know what to prioritize in the whole list of RFCs/next features that are going to land one day in Next.js?
Did some of your design decisions (first-class serverless support, Now, network optimizations) penalize you when adding features to Next.js?
(also, any preview on what will come next? 😊)
Hi Tim and Joe,
Since the outbreak of the COVID-19 pandemic, so many companies have resorted to remote working as a safety precaution. For developers who have not tried this before, it has been a whole new learning process for them. What best practices have you been using that has helped you over time?
Any good testing practices for Next.js pages? react-testing-library works well for non-pages, but do you have a recommended way of testing pages without mocking/recreating next server functionality? Found no docs on this.
Hi, could you see that in the future you open up for hosting Next.js sites in serverless environments other than Now? I have no problem with it, you make both, easy to achieve good performance. But for example at my company I am NOT able to convince them to use Now. We use Azure. I know there exists good attempts like serverless.com/blog/serverless-nextjs/, but an official guide/way of opening up for this would be great. We HAVE TO use a custom node server, as hybrid/serverless Nextjs deployment is hard to achieve on Azure Functions, and my heart aches that we have to opt out serverless, and all the benefits. My company is unconvinceale about Now, sorry. Other alternatives?
Next.js development is running from some years now. What do you think the process of development of the framework changed from the beginning to nowadays? Is it harder to be more popular?
What do you think NextJS can improve? What are the pinpoints that you are not satisfied about NextJS today?
I see that nowadays the NextJS team is committed in creating static features / improvements. Past that, is there a topic that the team would like to focus on and make progress to accomplish?
Do you feel that a Web Application Firewall that claims to provide common rules against OWASP top 10 is required for next.js applications?
What changes are coming (react and/or next.js or whatever) that will help with the TTI measure? What kind of timeline is realistic if there is anything?
Hi, how would you change the current example for cookie-auth with Next.js using getServerSideProps instead of getInitialProps?
Thanks
Hey guys, thanks for the AMA.
Here's my question for both of you:
How has pandemic lockdown affected your productivity? Has it increased or decreased?
Hi again!
If I need to run an A/B test on a page that is otherwise rather static and could be generated via SSG (e.g. a home page), do I have to fall back to SSR to render the correct version of this page for each user or is there some better way of doing it?
Hi!
I have a blog with ~5K posts and even more pages. All content is stored in a headless CMS and right now we use Gatsby to generate all pages. Is SSG implementation in Next.js suitable for handling such amount of content?
Next.Js treats even file or directory as a page but that's not always the desirable results.
Won't it's help minimize going back and forth between directories if there was a way to mark a folder as containing reusable components of a page? Or how do you guys approach code organization?
Hey,
With the addition of Static Site Generation (SSG) Support I can't think of a scenario where I would recommend using something other than Next.js like Gatsby and others.
Are there any cases where you would recommend using alternatives to Next.js ?
Thanks for the great work !
Incremental builds seems like it might solve the issue I have with static builds - needing to rebuild and deploy static pages every time new content is published on Storyblok. If a webhook could trigger a static rebuild using the source from a master branch or the most recent production deployment, that would be ideal.
Am I missing something with how other people are automating their publish/build/deploy flow?
Hi, I am very glad to meet you Next.js Team here.
Next.js has really great potential to grow up in the future and surely become the world top most React Framework. These days I am thriving on this new tech for me and working on Next.js project. But I am new beginner with Next.js and so many things to learn. You can help me in this case, I think.
The actual problem that I have is that I need to upgrade Next.js 9.2 to Next.js 10. Of course, there is no breaking change and just upgrading of Next.js version was successful but as you know the Next.js above 9.3 suggest to use SSG with
getStaticPropsagainstgetInitialPropsin 9.2 version.The project was written fully with
getInitialPropsto prerender and prefetch so that I need to upgrade it. I am struggling it but don't have clear idea how to do and what to do.I really hope your team give me golden advice to me, the one of Next.js fan. :) Looking forward to your kind reply and touch me anytime on this platform.
Thanks in advance