Skip to content

Commit

Permalink
Try adding netlify edge workers
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjvs committed Jan 8, 2024
1 parent e09decb commit ddabde1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
- name: Build for AWS
run: pnpm build:aws && cd .output/server && zip -r ../../lambda.zip .

- name: Build for Netlify edge
run: pnpm build:netlify && cd .output/server && zip -r ../../netlify.zip .

- name: Build for Node
run: pnpm build:node && cd .output/server && zip -r ../../nodejs.zip .

Expand Down Expand Up @@ -70,6 +73,16 @@ jobs:
asset_name: simple-proxy-aws-lambda.zip
asset_content_type: application/zip

- name: Upload Netlify build
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./netlify.zip
asset_name: simple-proxy-netlify-edge.zip
asset_content_type: application/zip

- name: Upload Node build
uses: actions/upload-release-asset@v1
env:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"build:cloudflare": "NITRO_PRESET=cloudflare npm run build",
"build:aws": "NITRO_PRESET=aws_lambda npm run build",
"build:node": "NITRO_PRESET=node-server npm run build",
"build:netlify": "NITRO_PRESET=netlify_edge npm run build",
"start": "node .output/server/index.mjs",
"lint": "eslint --ext .ts src/",
"lint:fix": "eslint --fix --ext .ts src/",
Expand Down

0 comments on commit ddabde1

Please sign in to comment.