menu
up-caret
down-caret

Next.js

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

# General

General Chatter

Trending conversations
Workaround to get from local storage during getInitialProps?
@stupid-sexy-jake · 14h
withRouter not updating props
@eugenem · 8h
pages, best practices and anti-patterns
@markymark · 12h
Rich text editor to use with next.js
@andrewcodes404 · 11h
Hi everyone
@yhm1187756835 · 13h
Show previous messages

March 22, 2019 at 12:18pm

Question for everyone -- probably been asked maybe?

  • reply
  • like
  • reply
  • like

And I keep getting

  • reply
  • like

EventSource failed loading: GET "http://localhost:3000/_next/webpack-hmr". EventSource failed loading: GET "http://localhost:3000/_next/on-demand-entries-ping?page=/about".

  • reply
  • like
"scripts": { "bootstrap": "npm install && (cp -n .env.dist .env || true) && (cp -n .env.docker.dist .env.docker || true)", "dev": "NODE_ENV=DEVELOPMENT nodemon .", "build": "next build", "start": "node ." },
  • reply
  • like

Nicolas M just posted a new thread 📝

Using redis to cache ssr html

thumbsup
1
message-simple
0

  • reply
  • like

Hello guys,

I have an issue i dont know how to fix it at all.

In local dev its working perfectly, but on prod it does not.

i have a link http://localhost/talents?main=139&category=139 , if you hit this link directly it is working, but in production it does not work. Its stuck at the home page

Any idea?

Thanks

  • reply
  • like

Hello guys,

I have an issue i dont know how to fix it at all.

In local dev its working perfectly, but on prod it does not.

i have a link http://localhost/talents?main=139&category=139 , if you hit this link directly it is working, but in production it does not work. Its stuck at the home page

Any idea?

Thanks

Are you trying to build static pages using next.js for prod?

Edited
  • reply
  • like

Yes

If i'm not mistaken, you are trying to build static pages while you have dynamic routes.

May be this will help you https://nextjs.org/docs/#usage

Edited
  • reply
  • like

The route is static but parameters are dynamic yes. /talents => i do have talents.js in /page

  • reply
  • like

Václav Nosek just posted a new thread 📝

'with-sentry' example - manual capturing

thumbsup
0
message-simple
0

  • reply
  • like

jp3492 just posted a new thread 📝

Styling seems to complicated :(

thumbsup
0
message-simple
4

  • reply
  • like

Greg Harris just posted a new thread 📝

publicRuntimeConfig

thumbsup
0
message-simple
1

  • reply
  • like

xieyiming just posted a new thread 📝

Latest version(v8.0.4-canary.19) build error

thumbsup
0
message-simple
1

  • reply
  • like

Nitin Malhotra just posted a new thread 📝

Can anyone help me in creating a next js application with firebase-authentication , firebase-admin and express ( Login - Logout )

thumbsup
0
message-simple
1

  • reply
  • like

Eugene M just posted a new thread 📝

withRouter not updating props

thumbsup
0
message-simple
2

  • reply
  • like

Sebastian Apostolescu just posted a new thread 📝

next.config.js css module loader breaks app

thumbsup
0
message-simple
0

  • reply
  • like

March 23, 2019 at 3:13am

Is there any way to change the static folder url after build. For example - right now my image url is <img src='/static/abc.png /> but I want it to be <img src='public/site/static/abc.png /> but only after building and exporting it as HTML. assetPrefix only works on js not on static.

Edited
  • reply
  • like

Jake just posted a new thread 📝

Workaround to get from local storage during getInitialProps?

thumbsup
0
message-simple
4

  • reply
  • like

Armen Rostamian just posted a new thread 📝

Boilerplate: Next8, Express Custom Server + Nodemon, AND working HMR.

thumbsup
0
message-simple
0

  • reply
  • like

张怀康 just posted a new thread 📝

Try to add browser-sync to next.config.js, get error.

thumbsup
0
message-simple
0

  • reply
  • like

March 23, 2019 at 3:56pm

Hey folks. I've deployed next.js react app serverless. it has express server running but when deployed w/ now serverless I get 404's on calls to express. anyone know how to run serverless w/ express wrapper around next ?

  • reply
  • like

hi friends, am new here, i would like to understand the core basis of Next.js as a beginner.

  • reply
  • like