`.properties.periods` would throw a `TypeError` if `properties` doesn't exist. For example: ```js co
.properties.periods would throw a TypeError if properties doesn't exist. For example:.properties.periodsTypeErrorpropertiesconst obj = {foo: 'bar'}
console.log(obj.foo) // bar
console.log(obj.bar) // undefined
console.log(obj.bar.baz) // TypeError
performance.now() isn’t available in Workers and Date.now() doesn’t increment unless you do I/O is there any way to actually benchmark CPU bound function execution times in a worker?performance.now() is available but it just calls Date.now()internal server error anyplace to look to see better logging?app.onError to add your own handlerproduction stuff on the dashboard entirely right now
request.cf.colorequest.cf.region for more region like info
performance.now()performance.now()Date.now()Date.now()internal server errorapp.onErrorproductionrequest.cf.colorequest.cf.regionimport { Hono } from 'hono'
import { Client } from 'pg'
const app = new Hono()
const connstring = "postgresql://postgres@localhost:5432/hhscdev?schema=public"
app.get('*', async (c) => {
const client = new Client("postgresql://postgres@localhost:5432/hhscdev?schema=public");
await client.connect();
const { rows: [{ now }] } = await client.query('select now();');
return c.text(`Hello Hono! ${now}`)
})
export default appconst res = await fetch('https://cloudflare.com/cdn-cgi/trace');
const text = await res.text();
const colo = text.substring(text.indexOf('colo=') + 5, text.indexOf('\n', text.indexOf('colo=')));