Troubleshoot: <LInk> href not working in production build
I recently created a production build of my portfolio site. The <Link> hrefs worked when I was using local host, but when I created a new project in Zeit and connected to Github the page redirects no longer work. Site is static, no backend. Set up is pretty straightforward.…
Next.js 8 and RNW Transpilation Issues
TL;DR: I need to transpile ESM source with Next.js, but I am unable to get it working with Next.js 8 I am attempting to transpile react-native-web source inside of my Next.js project. I succeeded at doing this in the past (see older Next.js RNW example). With Next.js 8,…
SSG/export pages + browser-only query string params in Next 9
We've got a growing SSG site built using Next.js and next export. We don't use <Link> at all, instead relying on plain old <a>s and use our own custom client-only routing for some pages which are more SPA-style applications. Everything works well on Next8 and the upgrade to 9…
Why should I use Next over Gatsby?
I've been building an application in Next.js and I'm starting to wonder what Next.js provides that Gatsby doesn't apart from SSR and no build times when data changes? I'm building an eCommerce website and apart from Gatsby's build times I don't see how I'm benefiting from…
Error Page conflicts with dynamic routing
So i have a few dynamic Routes like blog/[postname].tsx and i am trying to implement my custom error page now. On that error page i do a few server side queries to my cms api to get dynamic content. The examples for error handling for the case that a blog post is not existent i…
What's best styling strategy?
I haven't used Next.js extensively, yet, and, for that reason, I'd like to get a better sense of the best styling strategy. I'm trying to pick between styled-components (v5) or styled-jsx. IMHO, the way that styled-jsx is defined is not nearly as elegant as styled-components,…
Best way to redirect logged in users on statically optimized landing page?
I have my landing page in the same NextJs project as the actual app that you need to be logged in to view. I know I could use getInitialProps on the landing page to redirect to the home screen if I detect the user is logged in but this would turn off static optimization of that…