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

Why does Next not go to the top of a new page, but somewhere in the middle...

I've got a simple button <Button href={"/folder1/page1"} > </Button> However, when page1 loads after that (especially on mobile) - the screen is not at the top, but somewhere in the middle of the page... …

thumbsup
0
message-simple
2

How to animate images ?

Hi, I'm learning Next and i want to know how to animate images and icons like this website https://startp-react.envytheme.com/ can anyone help me in this?

thumbsup
0
message-simple
3

Fetching data and passing it to a page

I have a page located at the url /dashboard/servers loading from servers.js in the /dashboard folder and currently, I'm using getInitialProps to get the data from an API-route and pass it to the page via props. However, when a user navigates to another page and navigates back to…

thumbsup
0
message-simple
2

Turn off Automatic Static Optimization with a flag

Hi, is it possible to turn off Automatic Static Optimization with a flag? My use case is that I need to fetch parts of the page when doing SSR from a call to an external service (i.e. micro frontend). This external service needs to know which user is logged in, so needs access…

thumbsup
0
message-simple
0

Call back after change router

Hi I'm building a navbar for the website, i want before/after change router app will call some function, any change to make it easy or i must use redux for that ?? thanks

thumbsup
0
message-simple
9

How to use dynamic importing using nextjs 5 & webpack 3. I am getting 404s in…

Here's my sample code: import('components/cards/index') .then(Component => { …

thumbsup
0
message-simple
3

Sentry try catch exception

In all try catch i put into catch captureException like try { // my javascript code …

thumbsup
0
message-simple
0

Health of the Next.js project

My company has been using Gatsby for the last year or so. Our needs have shifted to needing some server-rendering, and as a result I've spent the last week working on a migration from Gatsby to Next. Based on all the research I did comparing the various products available, it…

thumbsup
2
message-simple
2

How to print to thermal printer using next.js?

Hi everyone. First question here. I am trying to print to thermal printer using escpos but I received some errors such as: Module not found: Can't resolve 'child_process' in 'D:\myproject\node_modules\@serialport\bindings\lib' Module not found: Can't resolve 'fs' in…

thumbsup
0
message-simple
3