Remove dead code, bump compatibility date

This commit is contained in:
Erisa A 2023-03-05 17:54:45 +00:00
parent 9f974d2a45
commit adaf66502d
No known key found for this signature in database
2 changed files with 1 additions and 13 deletions

View file

@ -261,16 +261,4 @@ function validateUrl(url: string) {
return true return true
} }
// zod and other validation libs too
// function validateBulkBody(body: Record<string, string>) {
// // Starting `/` and no ending `/`
// const keyRe = /^\/.*?[^\/]$/;
// if (!body || typeof body !== "object" || Array.isArray(body)) return false;
// return true;
// return body.map(
// ([key, url]) => keyRe.test(key) && validateUrl(url)
// );
// }
export default app export default app

View file

@ -9,7 +9,7 @@ account_id = "ece1d09b06af2ced51407c97505ea0cc"
kv_namespaces = [ { binding = "KV", id = "1be44406edc142a084435e24dbf8ae1d", preview_id = "15cfb90ecd654b8f8a9ccd600832093f" }] kv_namespaces = [ { binding = "KV", id = "1be44406edc142a084435e24dbf8ae1d", preview_id = "15cfb90ecd654b8f8a9ccd600832093f" }]
compatibility_flags = [] compatibility_flags = []
compatibility_date = "2022-07-05" compatibility_date = "2023-03-05"
# Remove or comment out the route line if using workers_dev # Remove or comment out the route line if using workers_dev
workers_dev = false workers_dev = false