diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 144d627..10c299a 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -5,7 +5,7 @@ on: pull_request: types: [opened, synchronize, reopened, closed] jobs: - deploy: + preview: environment: Preview runs-on: ubuntu-latest defaults: @@ -21,6 +21,8 @@ jobs: run: npm run build - uses: fastly/compute-actions/preview@v11 + env: + FASTLY_API_TOKEN: ${{ secrets.FASTLY_API_TOKEN }} with: project_directory: compute-js fastly-api-token: ${{ secrets.FASTLY_API_KEY }} diff --git a/compute-js/static-publish.rc.js b/compute-js/static-publish.rc.js index 318bf53..93572f7 100644 --- a/compute-js/static-publish.rc.js +++ b/compute-js/static-publish.rc.js @@ -22,7 +22,7 @@ const config = { // ], server: { publicDirPrefix: '', - staticItems: ['_astro', 'images'], + staticItems: ['/_astro/', '/images/', '/favicon.svg'], compression: ['br', 'gzip'], spaFile: false, notFoundPageFile: '/404.html',