Skip to content

[Bug]: New product not visible in nextjs starter storefront #11031

Description

@Fox333-Lab

Package.json file

no changes

Node.js version

v22

Database and its version

postgresql 17

Operating system name and version

linux fedora 41

Browser name

firefox

What happended?

I am new to Medusa and am currently learning by consulting the documentation. I have adhered to the version 2 documentation to set up the Medusa application along with the relevant Next.js starter template.

The issue I am experiencing is that when I add a new product in the Medusa backend through the admin panel, it does not show up in the storefront("localhost:9000/dk/store"). Upon logging to the console, I can only observe the default products created by Medusa, which are four in total in my case. Even after adding a fourth product, it is still not visible in the storefront.

I have tried executing the fetch query used in the "listProduct" function from an API client like Postman, and it successfully retrieves all products, including the new one I created. However, the logs in the storefront indicate that only the default products are being fetched.

I have also tried clearing the cookies and cache of the browser.

has anyone face this similar issue and resolved it?

Expected behavior

Should display all products added in admin panel.

Actual behavior

Only displays the default products created during medusa setup. When adding new product in admin it is not displayed in storefront

Link to reproduction repo

no repo, its in local

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions