diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e4f59ed..e4c8d88 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,9 +16,13 @@ jobs: with: node-version: 18 cache: 'npm' - - run: npm ci - - run: npm run build - - uses: JamesIves/github-pages-deploy-action@v4 + - name: Install dependencies + run: npm ci + - name: Build + run: npm run build + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@v4 with: folder: dist - branch: gh-pages \ No newline at end of file + branch: gh-pages + clean: true \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index bda6391..da9b89f 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,7 +2,7 @@ import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; export default defineConfig({ - base: '/wheattoast11.github.io/', + base: '/', // Changed from '/wheattoast11.github.io/' plugins: [react()], build: { outDir: 'dist'