From 03743aa9f58142ab726ec42e0ea745bd5888584b Mon Sep 17 00:00:00 2001 From: Laureline David Date: Fri, 25 Aug 2023 19:47:25 +0200 Subject: [PATCH] Build & Deploy --- .github/workflows/nuxtjs.yml | 8 ++------ nuxt.config.ts | 4 ++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nuxtjs.yml b/.github/workflows/nuxtjs.yml index 38ac8ef..207a747 100644 --- a/.github/workflows/nuxtjs.yml +++ b/.github/workflows/nuxtjs.yml @@ -36,10 +36,6 @@ jobs: with: node-version: "16" cache: yarn - - name: Setup Pages - uses: actions/configure-pages@v3 - with: - static_site_generator: nuxt - name: Restore cache uses: actions/cache@v3 with: @@ -52,11 +48,11 @@ jobs: - name: Install dependencies run: yarn install - name: Generate Static Site - run: yarn run generate + run: yarn run build - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: - path: ./.output/public + path: ./.nuxt/dist # Deployment job deploy: diff --git a/nuxt.config.ts b/nuxt.config.ts index 8392ba7..915c2b3 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,5 +1,9 @@ // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ + app: { + baseURL: '/cyoa-editor/', + buildAssetsDir: 'assets', + }, imports: { autoImport: true }, css: [ '@unocss/reset/normalize.css',