Possibly they just have some amazing db routing. They advertised 22ms response times somewhere too
Possibly they just have some amazing db routing. They advertised 22ms response times somewhere too
wrangler.toml file when possible (im accessing KV), this this possible?
wrangler.toml at runtime? is it set in an env or something? "foo" then it will be an identifier rather than a string).name property - I think they'd be open to adding it onto that binding though, I don't see why not.name and deployment revision number & timestamp on the new one tooexport { Foo } from './foo' in your index.js/tsexport, not import.
--definedefine.nameexport { Foo } from './foo'[define]
WORKER_NAME = '"foo"'{"name":"test-worker","deployment":{"id":"1a737aad-3c1a-40bf-90aa-4c0d1f840e13","number":51,"timestamp":"2024-04-27T02:52:40.970522Z"}}{"id":"72412edc-6438-4fe1-82b9-310ef69844f0","tag":""}[[unsafe.bindings]]
name = "METADATA"
type = "metadata"// entrypoint/userEntrypoint.ts
// Not recognize in this file
export class UserStore extends WorkerEntrypoint<Env> {
...
}// index.ts
// If I copy all UserStore content in index, it's ok.
export default class extends WorkerEntrypoint {
async fetch() {
const response = `
Version: 1.0.0\n
Code Name: Piston
Description: Database Worker\n
Changes: Initial version\n
Health Check: OK
`;
return new Response(response, { status: 200 });
}
}import { UserStore } from "./entrypoints/userEntrypoint"