Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Product information not updating #1091

Open
pnpaes opened this issue Aug 25, 2021 · 5 comments
Open

Product information not updating #1091

pnpaes opened this issue Aug 25, 2021 · 5 comments

Comments

@pnpaes
Copy link

pnpaes commented Aug 25, 2021

I am using the store front 3.0.0-b.2.
The product details page is not updating it automatically when price or other product information changes int he dashboard.
I can try to bust all local data or use private mode and it is the same behaviour.
It only updates if I stop/start the next server...
Seems that some static information is being rendered when the server starts and the product page doesn't fetch "fresh information". If i look into the browser network there is no api request in the product page, only in the product listing.
Which means the product listing get the latest updated price, but not the product page itself.

Is there a configuration that I can adjust or something that I can tweak to avoid that?
Locally i am just running npm run startso there is not export build with static html being generated.

Appreciate any help here.

@kdheeraz
Copy link

kdheeraz commented Sep 7, 2021

Same here using the same version of store-front

@kdheeraz
Copy link

kdheeraz commented Sep 7, 2021

Products are not visible under the category, shows zero records

@tmechsner
Copy link

Try experimenting with the INCREMENTAL_STATIC_REGENERATION_REVALIDATE environment variable. Per default I think it is set to 60 minutes (3600 seconds). After that time, if you refresh the page, the data get refreshed. This, however, only works for the next server. In case you use the Dockerfile as provided in the repo, it will use a static export of the site and serve it with an nginx server and never refresh any data.

@pnpaes
Copy link
Author

pnpaes commented Sep 28, 2021 via email

@tmechsner
Copy link

Oh dear. Sure that you tried it with "next start"? For me it works locally. But when deployed with docker, I get error messages when it tries to refresh the product pages: At least one of arguments is required: 'id', 'slug'. I think I'll open up a new Issue for this - although it feels like this repository is somewhat neglected, considering the activity in the other two repositories..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants