Open nvnivs opened 2 years ago
Good call. I did deliberate about passing in an attribute and explicitly downloading a dynamic package for WP2Static so it's not fixed in the bundled zip, but it's also released fairly infrequently and I wanted to guarantee functionality of a version I'd tested. It definitely needs an update though so I can grab the latest source, recompile, and bundle in an update.
Bundling it does make sense to guarantee results, but adding the attribute would be valuable.
It could default to a known good version (ex 7.1.7
) and downloadfrom the releases on container build.
Would also give users the flexibility to pin to a particular version, but this would be an enhancement of course.
When generating a static site, getting a 500 error straight away.
This is the error on the container logs:
Looks like the same issue reported here: https://staticword.press/t/404-error-when-crawling-sitemap/368/7, fixed in this commit: https://github.com/leonstafford/wp2static/commit/59540b17d875da2c418709caa2893e12832aef7e
Think the issue is that the package under
modules/codebuild/codebuild_files/serverless-wordpress-wp2static.zip
was generated on Jun 19, 2021 and the package v7.1.7 containing the fix on Sep 5, 2021.