From f7b8f4b7378ad618b8fe8b01200a61bb321012b5 Mon Sep 17 00:00:00 2001 From: Ronny Nyabuto Date: Fri, 27 Mar 2026 19:42:39 +0300 Subject: [PATCH] fix: stop configure-pages from injecting Nuxt 2 config properties 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 --- .github/workflows/nuxtjs.yml | 6 ------ public/.nojekyll | 0 2 files changed, 6 deletions(-) create mode 100644 public/.nojekyll diff --git a/.github/workflows/nuxtjs.yml b/.github/workflows/nuxtjs.yml index 463cfbc..7560447 100644 --- a/.github/workflows/nuxtjs.yml +++ b/.github/workflows/nuxtjs.yml @@ -53,12 +53,6 @@ jobs: cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages uses: actions/configure-pages@v5 - with: - # Automatically inject router.base in your Nuxt configuration file and set - # target to static (https://nuxtjs.org/docs/configuration-glossary/configuration-target/). - # - # You may remove this line if you want to manage the configuration yourself. - static_site_generator: nuxt - name: Restore cache uses: actions/cache@v4 with: diff --git a/public/.nojekyll b/public/.nojekyll new file mode 100644 index 0000000..e69de29