menu

Next.js

A place to chat about Next.js and answer questions. For all other ZEIT products, check this out.

Channels
Team
Posts
Members
Info

Auth0 with Nextjs Serverless

In the interview on http://www.fullstackradio.com/112 around the 1:06 min mark @rauchg mentioned that if he were to implement authentication all over again he would use Auth0, so I'm trying to figure out the best way to go about that. I followed along with…

thumbsup
0
message-simple
0

Passing data from one component to another component

I have two components, one component is a button that makes an api call and the second component is supposed to receive that data. What is the recommended approach for doing this?

thumbsup
0
message-simple
1

Import css from node_modules

Help me please. I'm trying to implement image gallery from https://www.npmjs.com/package/react-image-gallery in my app. I do everything according to documentation for this gallery but it doesn't work with Next.js because my app doesn't import css from node module. I import css…

thumbsup
0
message-simple
10

Is there a way to ignore some pageExtensions or create an exact pattern?

i have an issue with nextjs 9, nextjs on build command it try to find components in all folders inside pages, however relay generate a " generated " folder for flow types inside that one that files have a .graphql.js extension, nextjs think that files are routes and build fail…

thumbsup
0
message-simple
0

How to fully replace server.js on Next 9 - process.env.PORT and compression?

I upgraded my Google App Engine boilerplate example project to Next 9 and that worked seamlessly (thank you for that). I then attempted to use the new filename based dynamic routing to eliminate my server.js. That worked great as well, however, my server.js does two addition…

thumbsup
3
message-simple
1

Styling :visited links?

I'm having troubles styling visited links, :hover works perfectly. Is it a known limitation? I could find :hover examples at the repo but none of them uses :visited in the a tag, so I'm wondering if there is something that I'm missing or if it's the expected behaviour. Thanks a…

thumbsup
0
message-simple
4

Using styled-components/native with Next.js 9 & react-native-web?

Has anyone had any success in using the holy trinity of Next js, Styled-Components and React Native Web Max Stoiber proposes in this conf talk(s) & blogpost? "Tech choice regrets at spectrum": https://mxstbr.com/thoughts/tech-choice-regrets-at-spectrum/ …

thumbsup
0
message-simple
0

How to set environment variables alongside API Routes

I'm just using API routes which I love. One snag seems to be setting environment variables to be accessed across all of my api routes. Is there a way to do this programatically without loading .env in each lambda?

thumbsup
0
message-simple
0

Next server won't compile after upgrading to v9

I am getting TypeError: next_1.default is not a function after upgrading from v8. Did the imports or API change? Here's my code: It's weird because the type defs show that next is indeed a function.

thumbsup
1
message-simple
0
Tim·16h·Pinned# General

Companies / Sites using Next.js

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

thumbsup
110
message-simple
482