Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/cloudflare'
needs:
- test
steps:
Expand All @@ -50,20 +50,20 @@ jobs:
- name: Build OKLCH
run: node --run build
- name: Deploy OKLCH
uses: FirebaseExtended/action-hosting-deploy@v0
uses: cloudflare/wrangler-action@v3
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_OKLCH_ACCOUNT }}'
projectId: ai-oklch
channelId: live
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist/ --project-name=oklch
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Clean build dir
run: node --run clean
- name: Build LCH
run: node --run build:lch
- name: Deploy LCH
uses: FirebaseExtended/action-hosting-deploy@v0
uses: cloudflare/wrangler-action@v3
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_LCH_ACCOUNT }}'
projectId: ai-lch
channelId: live
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist/ --project-name=lch
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
33 changes: 0 additions & 33 deletions firebase.json

This file was deleted.

16 changes: 16 additions & 0 deletions public/_headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
X-Frame-Options: DENY;
X-Content-Type-Options: nosniff;
Content-Security-Policy: default-src 'self'; frame-ancestors 'none'; img-src 'self' data:; connect-src 'self' https://plausible.io;

/**/*.js
Cache-Control: public, max-age=31536000, immutable;

/**/*.css
Cache-Control: public, max-age=31536000, immutable;

/**/*.woff2
Cache-Control: public, max-age=31536000, immutable;

/**/*.svg
Cache-Control: public, max-age=31536000, immutable;