Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dist folder not created #86

Open
sayayinR opened this issue Oct 15, 2024 · 3 comments
Open

Dist folder not created #86

sayayinR opened this issue Oct 15, 2024 · 3 comments

Comments

@sayayinR
Copy link

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
Copy link
Owner

Have you tried to follow this guide?

@sayayinR
Copy link
Author

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

@thomasKn
Copy link
Owner

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.

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

No branches or pull requests

2 participants