diff --git a/.github/workflows/deploy-to-s3.yml b/.github/workflows/deploy-to-s3.yml index 70ef68c..7f18adc 100644 --- a/.github/workflows/deploy-to-s3.yml +++ b/.github/workflows/deploy-to-s3.yml @@ -15,7 +15,7 @@ jobs: with: node-version: '18' - name: Build - working-directory: cafo-explorer + working-directory: . run: | npm install && npm run build-staging - name: Configure AWS @@ -25,7 +25,7 @@ jobs: aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-east-2 - name: Copy to S3 - working-directory: cafo-explorer + working-directory: . run: | aws s3 sync dist s3://stories2.theplotline.org/cafo-explorer/ --delete - name: Clear Cloudfront cache diff --git a/vite.config.js b/vite.config.js index 723fb1f..5f1a071 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,13 +1,13 @@ -import { fileURLToPath, URL } from 'node:url' -import { defineConfig } from 'vite' +import { fileURLToPath, URL } from "node:url"; +import { defineConfig } from "vite"; // https://vitejs.dev/config/ export default defineConfig({ - plugins: [ - ], + base: "/cafo-explorer/", + plugins: [], resolve: { alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) + "@": fileURLToPath(new URL("./src", import.meta.url)), + }, + }, +});