rdutton
01/25/2023, 3:13 AMi40west
01/25/2023, 3:15 AMrdutton
01/25/2023, 3:15 AMi40west
01/25/2023, 3:15 AMpackage.json
that does the build and make sure it runs as part of npm run build
or whatever. Then you can have your output files in .gitignore
and let it build cleanly at Cloudflarei40west
01/25/2023, 3:16 AMrdutton
01/25/2023, 3:18 AMrdutton
01/25/2023, 3:18 AMrdutton
01/25/2023, 6:28 AMesbuild --format=esm --bundle --sourcemap --outfile=dist/_worker.js ./src_worker/index.js
with the critical flag being --format=esm
and it's deploying successfully 🙂Greg Brimble | Cloudflare Pages
01/25/2023, 8:03 AM_worker.js
but it’s not quite ready for debut. Stay tuned!rdutton
01/25/2023, 9:03 AMVero 🐙
01/25/2023, 5:43 PMzszszsz
01/25/2023, 6:35 PMGreg Brimble | Cloudflare Pages
01/25/2023, 6:54 PMSomeone
01/26/2023, 5:30 AMexport async function onRequest(context){
const body = JSON.stringify("foo": "bar");
let response = new Response(body);
response.headers.set("X-Numbers", "123");
return response
}
IanVS
01/26/2023, 9:50 PMJames
01/27/2023, 12:02 AMwrangler dev
using the latest wrangler 2.8.1, in prod, or both?James
01/27/2023, 12:03 AMIanVS
01/27/2023, 12:11 AMJames
01/27/2023, 12:11 AMpackage.json
?IanVS
01/27/2023, 12:12 AM▶ npm ls wrangler
defined-www@1.0.0 /Users/ianvs/code/defined/www
└── wrangler@2.7.1
IanVS
01/27/2023, 12:17 AMnpx wrangler pages dev
Greg Brimble | Cloudflare Pages
01/27/2023, 2:01 AMIEatBeans
01/27/2023, 5:16 AMBlob { size: 8880, type: 'image/png' }
, but then when i try to set it to the formdata of a fetch inside the function it says Failed to execute 'append' on 'FormData': 2 arguments required, but only 1 present
IEatBeans
01/27/2023, 5:17 AMdemluxe
01/29/2023, 12:52 AMJames
01/29/2023, 12:54 AMwrangler pages deployment tail
, but you won't be able to see any historical logsJames
01/29/2023, 12:54 AMdemluxe
01/29/2023, 12:55 AMHazard
01/29/2023, 1:39 AMERROR Error: Failed to construct 'WebSocket': the constructor is not implemented.
IEatBeans
01/29/2023, 5:12 AMGET /server/list OPEN
GET /server/[uuid]/details OPEN
POST /server/[uuid]/details AUTH
POST /server/[uuid]/images/logo AUTH
Where would I put the middleware?