Skip to content

Commit

Permalink
debug deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
goodroot committed Dec 12, 2024
1 parent 3ba601d commit b946cea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ jobs:
CONTEXT: deploy-preview
NETLIFY: true
run: |
# Remove any existing headers
rm -f ./static/_headers
rm -f ./build/_headers
yarn build
# Add preview headers after build
cp ./custom-headers/_previewHeaders ./build/_headers
- name: Deploy to Netlify
uses: jsmrcaga/[email protected]
Expand Down
8 changes: 1 addition & 7 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -633,10 +633,4 @@ force = true
from = "/pricing/"
to = "/enterprise/"
status = 301
force = true

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

[context.deploy-preview]
command = "yarn build && cp ./custom-headers/_previewHeaders ./build/_headers"
force = true

0 comments on commit b946cea

Please sign in to comment.