commerce
commerce copied to clipboard
[spree] Not showing the product list
Hello sir, I am using spree 4.4 , spree nextjs-commerce (https://github.com/spree/nextjs-commerce) complied successfully. On browsing localhost:3000 front page loads successfully but products in menus are not showing and giving an error below
event - compiled client and server successfully in 4.4s (793 modules)
wait - compiling / (client and server)...
event - compiled client and server successfully in 1545 ms (888 modules)
getAllProducts called. Configuration: getAllProductsVariables: { first: 6 } config: { locale: 'en-US', locales: [ 'en-US', 'es' ] }
apiFetch called. query = url = __UNUSED__ queryData = {
variables: { methodPath: 'products.list', arguments: [ {}, [Object] ] }
} fetchOptions = {}
Looking for products.list in Spree Sdk.
Checking part products.
Calling the Spree API: GET https://demo.spreecommerce.org/api/v2/storefront/products?include=primary_variant%2Cvariants%2Cimages%2Coption_types%2Cvariants.option_values&per_page=6&image_transformation%5Bquality%5D=100&image_transformation%5Bsize%5D=1000x1000
getAllPages called. Configuration: query: undefined userConfig: { locale: 'en-US', locales: [ 'en-US', 'es' ] } preview: undefined url: undefined
apiFetch called. query = url = __UNUSED__ queryData = { variables: { methodPath: 'pages.list', arguments: [ [Object] ] } } fetchOptions = {}
Looking for pages.list in Spree Sdk.
Checking part pages.
Calling the Spree API: GET https://demo.spreecommerce.org/api/v2/storefront/cms_pages?per_page=500&filter%5Blocale_eq%5D=en-US
getSiteInfo called. Configuration: query: undefined getSiteInfoVariables {} config: { locale: 'en-US', locales: [ 'en-US', 'es' ] }
apiFetch called. query = url = __UNUSED__ queryData = { variables: { methodPath: 'taxons.list', arguments: [ [Object] ] } } fetchOptions = {}
Looking for taxons.list in Spree Sdk.
Checking part taxons.
Calling the Spree API: GET https://demo.spreecommerce.org/api/v2/storefront/taxons?filter%5Bparent_permalink%5D=categories
apiFetch called. query = url = __UNUSED__ queryData = { variables: { methodPath: 'taxons.list', arguments: [ [Object] ] } } fetchOptions = {}
Looking for taxons.list in Spree Sdk.
Checking part taxons.
Calling the Spree API: GET https://demo.spreecommerce.org/api/v2/storefront/taxons?filter%5Bparent_permalink%5D=brands
Can anybody help me
resolved by adding cors nginx policies on the side of spree hosted server https://enable-cors.org/server_nginx.html https://docs.viblast.com/player/cors/cors-on-nginx
Hey there! Thank you for your contribution. We have decided to take Next.js Commerce in a new direction and will be closing out current PRs and issues due to this change. Please see this PR for more details: https://github.com/vercel/commerce/pull/966