menu
Next.js

# General

General Chatter

Posts
Members
Search

Serverless env config (prod + stag on GCP)

I'm using Next.js with Firebase and Google Cloud Functions. I have two projects in GCP: one for production and one for staging. These are both using the "production" deployment of Next.js, while my local uses dev. My question is about configuring Next/React differently between…

thumbsup
0
message-simple
3

Help with example of unistore integration with next.js

Hi everyone, I'm trying to integrate unistore (https://github.com/developit/unistore) with next.js It works fine except that it disables getInitialProps being called from the page. The issue seems to be that Component.getInitialProps isn't defined once we wrap our page with…

thumbsup
0
message-simple
0

_next/webpack-hmr request 404

This issue's demo repo is https://github.com/hh54188/happy-server/tree/issue-demo I try to integrate Next.js with Hapi.js as a plugin. Here is my next.js plugin project folder main structure: --plugins …

thumbsup
0
message-simple
5

Integrate react-fontawesome on nextjs 😶

Hi everyone 👋 I use nextjs with JSS to styling my components. I want to be able to add react-fontawesome inside my project but I encoutered a problem to integrate the library functionnality. I tried differents way to implement it but any of them work. Here a codesandbox with my…

thumbsup
0
message-simple
3

Dynamic Parameters in exportPathMap

Hello. I've just started using Next yesterday. I want to export to static sites; so, I'm configuring exportPathMap in next.config.js. All of the samples show exporting when you know all the parameters like: However, I need to use dynamic query parameters. I've tried this…

thumbsup
0
message-simple
11

beforePopState unexpected behavior

Hi everyone ! I would like to block history popstate when a certain prop is at true. I used this solution : Everything works fine, we stay in the same page but the url changes somehow. …

thumbsup
0
message-simple
0

Recommendations for PIM to next.js webshop

Hi, I am currently doing a webshop project with Next and Now., and i am searching the web to find the best tools and systems to run the setup. the shop could potential contain a lot of my own products, but should also contain products from 3 party systems that will handle the…

thumbsup
0
message-simple
3
Tim·10h·Pinned

Companies / Sites using Next.js

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

thumbsup
74
message-simple
388

What is the best way to get (fetch) data in getInitialProps which depends on…

I have pagination state stored in local state in page. I need to use it to fetch some data. One of the solutions would be to store pagination outside of the page, say in the url or redux store. Are they only the ones right solutions?

thumbsup
0
message-simple
2