Skip to content

fix: add Secure flag to cookies #64

fix: add Secure flag to cookies

fix: add Secure flag to cookies #64

Workflow file for this run

name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install deps
run: npm install
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
- name: Deploy Worker
run: cd worker && npx wrangler deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
- name: Build & Deploy Frontend
run: |
cd frontend
npm install
NEXT_PUBLIC_API_URL=https://webapp.rahejaom.workers.dev npm run build
cd ..
npx wrangler pages deploy frontend/out --project-name=webapp
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: 0bfab51e8cc50b91033dc21005e8cabc