anyone else not able to deploy? sees like wangler login isn't working. Gate way error 504
anyone else not able to deploy? sees like wangler login isn't working. Gate way error 504
wrangler deploy count in 1MB limit?workers.api.error.script_too_largefetch handler) without awaiting itapp.use('/input/*', bearerAuth({ TOKEN })); I would normally use 'process.env.TOKEN'app scope, then store it in a globalapp.use('/input/*', (c, next) => bearerAuth({ c.env.TOKEN })(c, next));async fn main(req: Request, env: Env, ctx: Context) -> Result<Response> {
let cache = Cache::default();
let path = "http://www.google.com";
let response: Option<Response> = cache.get(path.clone(), false).await?;
console_log!("here!");
match response {
Some(response) => {
let mut resp: Response = Response::ok("Cache hit")?;
Ok(resp)
},
None => {
console_log!("{}", path);
let mut resp = Response::ok("Cache miss")?;
Ok(resp)
}
}
}