Skip to content

Commit

Permalink
custom headers via action
Browse files Browse the repository at this point in the history
fixes link issues
  • Loading branch information
goodroot committed Dec 12, 2024
1 parent 64a3fad commit 7cb1a27
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ jobs:
env:
CONTEXT: deploy-preview
NETLIFY: true
run: yarn build
run: |
yarn build
cp ./custom-headers/_previewHeaders ./build/_headers
- name: Deploy to Netlify
uses: jsmrcaga/[email protected]
Expand Down
14 changes: 0 additions & 14 deletions custom-headers/_productionHeaders

This file was deleted.

6 changes: 0 additions & 6 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -665,9 +665,3 @@ to = "/:splat"
status = 200
force = true
conditions = {Context = "deploy-preview"}

[context.production]
command = "npm run build && cp ./custom-headers/_productionHeaders ./build/_headers"

[context.deploy-preview]
command = "npm run build && cp ./custom-headers/_previewHeaders ./build/_headers"

0 comments on commit 7cb1a27

Please sign in to comment.