menu
Channels
Team
Posts
Chat
Members
Info
down-caret
·8h·Pinned# General

Companies / Sites using Next.js

ZEIT - https://zeit.co Netflix - https://jobs.netflix.com/ Trulia - https://twitter.com/Timcorreia/status/950974800234668032 …

thumbsup
155
message-simple
644

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.…

thumbsup
0
message-simple
2

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,…

thumbsup
0
message-simple
3

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…

thumbsup
0
message-simple
4

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…

thumbsup
0
message-simple
3

Unstyled page when redirect

Hey guys, I'm facing a pretty strange error, sometimes when I redirect with a <Link> or a push I get that my page dont show any css. I'm using material UI with my layout. Have anyone faced this issue? How do you solve it?

thumbsup
0
message-simple
3

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…

thumbsup
0
message-simple
3

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,…

thumbsup
0
message-simple
2

My project run fine in local dev, but not in production site

My site url is : https://test.yzcycn.net/antdnext/

thumbsup
0
message-simple
2

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…

thumbsup
0
message-simple
2

Hi all, Which one will be preferenced by nextjs dynamic routes

/users/[id].js OR /users/[id]/index.js I am assuming that both will resolve to same URL

thumbsup
1
message-simple
5