You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.
@robmellett I wanted to thank you for this starter kit. It was a huge help!
I have been playing with for a few weeks and, while everything worked well so far, I am having some issues with generating dynamic pages in static site generation.
In my store, I only list and link all the collections. The product pages are accessible via a collection page that fetches all associated products directly from the shopify api on page load. That means I have to dynamically generate all the pages for my static site - because if I refresh a product page (products/_handle.vue) I get a 404 Page Not Found.
In your nuxt.config.js file, you have commented the build configuration to generate dynamic pages via the service ShopifyService. When uncommenting and running generate I ran in a ReferenceError: $shopify is not defined.
Thanks for your work and your help. Much appreciated!
The text was updated successfully, but these errors were encountered:
tbudin
changed the title
Issue generating dynamic routes with ShopifyService
Issue generating dynamic routes with ShopifyService for static site generation
May 10, 2021
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
@robmellett I wanted to thank you for this starter kit. It was a huge help!
I have been playing with for a few weeks and, while everything worked well so far, I am having some issues with generating dynamic pages in static site generation.
In my store, I only list and link all the collections. The product pages are accessible via a collection page that fetches all associated products directly from the shopify api on page load. That means I have to dynamically generate all the pages for my static site - because if I refresh a product page (
products/_handle.vue
) I get a404 Page Not Found
.In your
nuxt.config.js
file, you have commented the build configuration to generate dynamic pages via the service ShopifyService. When uncommenting and running generate I ran in aReferenceError: $shopify is not defined
.Have you found a solution for this? I was wondering if we could use Speeding up dynamic route generation with payload
Thanks for your work and your help. Much appreciated!
The text was updated successfully, but these errors were encountered: