Pages projects are automatically deployed globally - you don't get to choose where they are.
Pages projects are automatically deployed globally - you don't get to choose where they are.
getPlatformProxy and miniflare/workerd ?getPlatformProxy:drizzle(db) and waiting for ~1sec):wrangler dev on a worker and I can't access the bindings made from anotehr worker

CF_PAGES_COMMIT_SHA and CF_PAGES_BRANCH can be extracted in the qwik framework?wrangler dev uses chrome dev tools to inspect worker requests. But I can't see the picture yet.chrome-devtools . But I can't locate how wrangler starts chrome and talk to it. openInspector() it just opens an webpage at https://devtools.devprod.cloudflare.dev/js_app js_app page is but a webpage built on devtools code. It just talk to local WS in devtools protocol.Failed to establish a new connection: [Errno 61] Connection refused (when trying to connect to :8787 via fetch). this has never happened to me before. is there any solution to this?cloudflare/wrangler-action@v3?pages deploy PATH --project-name=kaget --branch=main the result has duplicate project name which leads to error no such file or directory

pages deploy <path> as the command but you don't seem to be building the site in the Action which is why the dist folder seems missingRate limited. Please wait and consider throttling your request speed [code: 10000] ? We started seeing increased instances of this.wranger deploy in CI (gh actions), so I don't think there's reference to my username in that environment. Or am I missing osmething?/home/naourass/web_exp/phoenix-astro-next/node_modules/undici/index.js:112
Error.captureStackTrace(err, this)
^
TypeError: fetch failed
at Object.fetch (/home/naourass/web_exp/phoenix-astro-next/node_modules/undici/index.js:112:15)
at fetch3 (/home/naourass/web_exp/phoenix-astro-next/node_modules/miniflare/src/http/fetch.ts:90:19)
at ProxyClientBridge.dispatchFetch (/home/naourass/web_exp/phoenix-astro-next/node_modules/miniflare/src/index.ts:1647:20)
at ProxyStubHandler.#parseAsyncResponse (/home/naourass/web_exp/phoenix-astro-next/node_modules/miniflare/src/plugins/core/proxy/client.ts:339:15)
at D1PreparedQuery.get (/home/naourass/web_exp/phoenix-astro-next/node_modules/src/d1/session.ts:223:16) {
cause: SocketError: other side closed
at Socket.onSocketEnd (/home/naourass/web_exp/phoenix-astro-next/node_modules/undici/lib/client.js:1118:22)
at Socket.emit (node:events:529:35)
at Socket.emit (node:domain:489:12)
at endReadableNT (node:internal/streams/readable:1400:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'UND_ERR_SOCKET',
socket: {
localAddress: '127.0.0.1',
localPort: 57506,
remoteAddress: undefined,
remotePort: undefined,
remoteFamily: undefined,
timeout: undefined,
bytesWritten: 1091,
bytesRead: 1783105
}
}
}drizzle(db)CF_PAGES_COMMIT_SHACF_PAGES_BRANCHexport const useServerTimeLoader = routeLoader$(async ({ env }) => {
return {
date: new Date().toISOString(),
commit: env.get("CF_PAGES_COMMIT_SHA"),
branch: env.get("CF_PAGES_BRANCH"),
};
});chrome-devtoolsopenInspector()https://devtools.devprod.cloudflare.dev/js_appjs_appFailed to establish a new connection: [Errno 61] Connection refusedcloudflare/wrangler-action@v3pages deploy PATH --project-name=kaget --branch=mainpages deploy <path>Rate limited. Please wait and consider throttling your request speed [code: 10000]wranger deployconst cfPlatformProxy = await getPlatformProxy();
const db = drizzle(cfPlatformProxy.env.DB);
// Do some a few seconds long computation here...
const res = await db.select().from(myTable);const cfPlatformProxy = await getPlatformProxy();
let db = drizzle(cfPlatformProxy.env.DB);
// Do some a few seconds long computation here...
db = drizzle(cfPlatformProxy.env.DB);
await new Promise(resolve => setTimeout(resolve, 1500));
const res = await db.select().from(myTable);export default {
async fetch(req, env) {
if (req.method !== "POST")
return Response.json({ message: "Method Not Allowed" }, { status: 405 });
return Response.json({ status: "OK" }, { status: 200 });
}
}name: Deploy staging
on:
push:
branches:
- main
jobs:
cloudflare:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
packageManager: pnpm