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

[Feature]: Static Site Generation #6888

Open
1 task done
martijnvdbrug opened this issue Feb 17, 2023 · 2 comments
Open
1 task done

[Feature]: Static Site Generation #6888

martijnvdbrug opened this issue Feb 17, 2023 · 2 comments

Comments

@martijnvdbrug
Copy link

How the project can be improved?

I found this issue in the VSF1 repo about static SSG. It mentions that VSF2 might implement SSG.

So, I was wondering, Is there any update on this? I see VSF2 is out now, but I don't think SSG is supported yet.

With my company Pinelab I am building most of my storefronts as static sites using Vendure. I see there already is an integration available for Vendure.

We are currently maintaining our own Vue e-commerce components, but I'd rather contribute to Vue Storefront.
But, I really prefer SSG for most of our storefronts.

How much effort would it require to support SSG? Is it days, weeks, months? Maybe I can contribute.

What are the acceptance criteria?

  • Allow storefronts to be statically generated

Additional information

No response

What version of Vue Storefront this feature can be implemented?

That's up to you :)

Code of Conduct

  • I agree to follow this project's Code of Conduct
@filrak
Copy link
Collaborator

filrak commented Feb 17, 2023

Hey!

So, technically you can use VSF2 with SSG. VSF2 is based on Nuxt that support that feature our of the box.

Here's what you'd need to do

  1. Check out this document on Nuxt docs and adjust your pages for SSG
  2. Deploy VSF Middleware as a separate node app - it's using Nuxt SSR context so to make the frontend static you should run middleware separately

I don't know about anyone who used that way though so I'm not sure if you encounter any issues or not. If you do, we're happy to help

@martijnvdbrug
Copy link
Author

Awesome, I am going to give it a try! (I guess this issue can be closed for now?)

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