thomasKn / astro-shopify

A lightweight and powerful ecommerce starter theme to build headless Shopify storefronts with Astro.
https://astro-shopify.frontvibe.com
MIT License
332 stars 99 forks source link

Dist folder not created #86

Open sayayinR opened 2 weeks ago

sayayinR commented 2 weeks ago

Hi, I'm sure this is just a documenatation issue but I'm trying out astro-shopify and with the existing config when I run npm run build, a dist folder is not created. I can see it has an adapter for vercel. I am testing this with Github pages and the build fails because it does not find dist folder. Can you please update docs or advise what I need to do?

Thank you!

thomasKn commented 2 weeks ago

Have you tried to follow this guide?

sayayinR commented 2 weeks ago

Yes I have. That’s where I copied the Yaml file from.

thomasKn commented 2 weeks ago

You also need to update your astro config to generate a static build:

export default defineConfig({
  output: "static",
  // adapter: vercel(),
  integrations: [
    tailwind({
      config: {
        applyBaseStyles: false,
      },
    }),
    svelte(),
  ],
});

And then you will have to update the src/pages/products/[...handle].astro page to add the getStaticPaths() function.