Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request:
types: [opened, synchronize, reopened, closed]
jobs:
deploy:
preview:
environment: Preview
runs-on: ubuntu-latest
defaults:
Expand All @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion compute-js/static-publish.rc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const config = {
// ],
server: {
publicDirPrefix: '',
staticItems: ['_astro', 'images'],
staticItems: ['/_astro/', '/images/', '/favicon.svg'],
compression: ['br', 'gzip'],
spaFile: false,
notFoundPageFile: '/404.html',
Expand Down
Loading