import { Miniflare } from "miniflare";
const mf = new Miniflare({
host: "0.0.0.0",
port: 3000,
workers: [
{
name: "worker",
serviceBindings: {
TEST: {
// this key here
external: {
address: "127.0.0.1:8787"
}
}
},
modules: true,
scriptPath:'path/to/worker.js'
},
],
});
await mf.ready
import { Miniflare } from "miniflare";
const mf = new Miniflare({
host: "0.0.0.0",
port: 3000,
workers: [
{
name: "worker",
serviceBindings: {
TEST: {
// this key here
external: {
address: "127.0.0.1:8787"
}
}
},
modules: true,
scriptPath:'path/to/worker.js'
},
],
});
await mf.ready