上一页 1 ··· 98 99 100 101 102 103 104 105 106 ··· 469 下一页
摘要: We'll learn how to use Next.js API Routes to hide sensitive information from the clients. In this case, we're calling the JSON Placeholder API with a 阅读全文
posted @ 2022-04-03 17:39 Zhentiw 阅读(41) 评论(0) 推荐(0) 编辑
摘要: We'll learn how to create a middleware function for next-connect. This middleware will work at the route level, for example, for every request that hi 阅读全文
posted @ 2022-04-03 17:36 Zhentiw 阅读(110) 评论(0) 推荐(0) 编辑
摘要: We'll learn an alternative way of creating API routes using the next-connect package. next-connect gives us an alternative that would feel familiar to 阅读全文
posted @ 2022-04-03 17:34 Zhentiw 阅读(37) 评论(0) 推荐(0) 编辑
摘要: Lock away your AWS account root user access keys Create individual IAM users Use groups to assign permissions to IAM users Grant least privilege Get s 阅读全文
posted @ 2022-03-31 03:14 Zhentiw 阅读(43) 评论(0) 推荐(0) 编辑
摘要: type Twitter = { tweets: number} type Instagram = {canFollow: boolean} function describeAccount(account: Twitter | Instagram) { if (account.tweets) { 阅读全文
posted @ 2022-03-30 15:26 Zhentiw 阅读(38) 评论(0) 推荐(0) 编辑
摘要: src$.pipe( retryWhen(error$ => error$.pipe( switchMap(getNotifier) )) ) // can just be src$.pipe( retry({ delay: getNotifier }) ) /** * The {@link ret 阅读全文
posted @ 2022-03-30 15:21 Zhentiw 阅读(112) 评论(0) 推荐(0) 编辑
摘要: // ❎ const object = {} object[key] = value // 👍 better performance const map = new Map() map.set(key, value) 阅读全文
posted @ 2022-03-30 15:10 Zhentiw 阅读(52) 评论(0) 推荐(0) 编辑
摘要: High availability and elastic scalaility for web servers? Use EC2 Auto Scaling and an ALB across Multi AZs Low-latency connections over UDP to a pool 阅读全文
posted @ 2022-03-30 02:54 Zhentiw 阅读(47) 评论(0) 推荐(0) 编辑
摘要: const b = true const c = false let object = { a: 1, ...(b ? {b: 2}: {}), ...(c ? {c: 3}: {}) }; console.log(object) // { a: 1, b: 2 } 阅读全文
posted @ 2022-03-28 13:51 Zhentiw 阅读(21) 评论(0) 推荐(0) 编辑
摘要: CloudFront Path Patterns You can define Behaviors to server different Origin for differnet request. For example: Set Behavior if match *.jpg redirect 阅读全文
posted @ 2022-03-28 01:53 Zhentiw 阅读(565) 评论(0) 推荐(0) 编辑
上一页 1 ··· 98 99 100 101 102 103 104 105 106 ··· 469 下一页