Skip to content

fix: stop configure-pages from injecting Nuxt 2 config properties#85

Open
ronnyabuto wants to merge 1 commit intoopensource254:masterfrom
ronnyabuto:fix-pages-workflow
Open

fix: stop configure-pages from injecting Nuxt 2 config properties#85
ronnyabuto wants to merge 1 commit intoopensource254:masterfrom
ronnyabuto:fix-pages-workflow

Conversation

@ronnyabuto
Copy link
Copy Markdown

actions/configure-pages with static_site_generator: nuxt injects router.base and target: static into nuxt.config.js. Both are Nuxt 2 options that no longer exist in Nuxt 3. The action's config parser throws a bare string when it can't resolve the injection, which causes TypeError: error must be an instance of Error and the build never reaches nuxt generate.

Removing static_site_generator: nuxt stops the injection entirely. Also adds public/.nojekyll so GitHub Pages doesn't hide _nuxt/ assets.

Closes #78

actions/configure-pages with static_site_generator: nuxt injects
router.base and target: static into nuxt.config.js. Both are Nuxt 2
options that no longer exist in Nuxt 3. The action's config parser
throws a bare string when it can't resolve the injection, which causes
TypeError: error must be an instance of Error and the build never
reaches nuxt generate.

Removing static_site_generator: nuxt stops the injection entirely.
Also adds public/.nojekyll so GitHub Pages doesn't hide _nuxt/ assets.

Closes opensource254#78
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

Successfully merging this pull request may close these issues.

Investigate failing builds

1 participant