dave
02/22/2023, 8:41 PMdave
02/22/2023, 8:42 PMwrangler tail -e production
seems to stop collecting logsDeleted User
02/22/2023, 9:12 PMcache.delete
since its only per colo. Would this work at all?https://${url.host}/${key}
and I'm a little confused if I should purge the cache key or purge the actual endpoint it's hitting which would be something different like https://${url.host}/${key}.json
Louis DCK
02/22/2023, 9:35 PMmuslax
02/23/2023, 12:04 PMrenzor
02/23/2023, 1:56 PMexample.com/api
. Is there a way to configure miniflare to accept a baseUrl like /api
?
// my worker
import { Hono } from "hono"
const app = new Hono()
app.get("/", (c) => c.text("Hono!"))
export default app
// my miniflare dispatch
const response = await mf.dispatchFetch(
new URL("https://example.com/api"),
)
renzor
02/23/2023, 1:56 PMbaseUrl
option to tell miniflare to point /api
requests to my worker, since it will be mounted at example.com/api
boywithkeyboard
02/23/2023, 4:43 PMboywithkeyboard
02/23/2023, 4:45 PM/api
prefixrenzor
02/23/2023, 4:55 PMrenzor
02/23/2023, 4:55 PMexample.com/api/thing
as /thing
because its mounted at example.com/api
Skye
02/23/2023, 4:55 PMrenzor
02/23/2023, 4:58 PMapi.use('/posts/*', cors())
app.route('/api', api)
export default app
Skye
02/23/2023, 4:59 PMSkye
02/23/2023, 4:59 PMrenzor
02/23/2023, 5:04 PMdave
02/23/2023, 6:32 PMdave
02/23/2023, 6:36 PMD1Database
var is nowhere on my env
objectdave
02/23/2023, 6:37 PMChaika
02/23/2023, 6:38 PMSkye
02/23/2023, 6:38 PMChaika
02/23/2023, 6:38 PMSkye
02/23/2023, 6:38 PMdave
02/23/2023, 6:38 PMdave
02/23/2023, 6:39 PMdave
02/23/2023, 6:39 PMSkye
02/23/2023, 6:39 PMSkye
02/23/2023, 6:39 PMSkye
02/23/2023, 6:40 PM