-
Notifications
You must be signed in to change notification settings - Fork 54
feat: ssg rspress example #102
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
base: main
Are you sure you want to change the base?
Conversation
Please also create a PR on |
|
@fiorin Have an errors in console, not sure is it an issue, |
Discussed already with @VladyslavZinchenko, but here some context on the PR. The example is the default implementation from Rspress documentation: here with a Zephyr custom plugin and the SSG flag enabled on the config file:
The issue with SSG flag was multiple Zephyr triggering on build:
And after upload the assets, multiple served URL generated, but only the last one proper loading. So the main goal of the implementation was solve the multiple trigger issue, so the tweak in the custom Zephyr plugin:
|
add an example using Rspress for server static site generator
to make Rspress to work with Zephyr is needed need a custom plugin, but enabling SSG triggers multiple times the build, so it is needed to proper check with thread is the proper one, so a tweak in the plugin does the work: