From 345ca347b45a586e8682f007dc09bc34a008e654 Mon Sep 17 00:00:00 2001 From: Dosugamea <17107514+Dosugamea@users.noreply.github.com> Date: Fri, 19 Jan 2024 01:41:14 +0900 Subject: [PATCH] fix(ci): use github pages preset --- .github/workflows/nuxtjs.yml | 6 ++++-- nuxt.config.ts | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nuxtjs.yml b/.github/workflows/nuxtjs.yml index 2b095b6..1f4fa86 100644 --- a/.github/workflows/nuxtjs.yml +++ b/.github/workflows/nuxtjs.yml @@ -42,11 +42,13 @@ jobs: - name: Install dependencies run: pnpm i --frozen-lockfile - name: Static HTML export with Nuxt - run: pnpm generate + run: pnpm generate --preset=github_pages + env: + NITRO_PRESET: github_pages - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: ./dist + path: ./.output/public # Deployment job deploy: diff --git a/nuxt.config.ts b/nuxt.config.ts index 32b719d..1c5f92d 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -75,8 +75,6 @@ export default defineNuxtConfig({ }, devtools: { enabled: true }, app: { - cdnURL: import.meta.env.GITHUB_ACTIONS ? '/recreate-news/' : undefined, // baseURL: '//' - buildAssetsDir: 'assets', head: { title: 'Sparkle News', titleTemplate: '%s - Sparkle News',