annopatch-server

annopatch-server

2024/2/18 やっぱりサーバー作るの止めた
SSGっぽい方法を考えてみる



annopatchのサーバーサイド

anno自体がオープンソースなので、サーバー運用周りもなるべくオープンにしてみる

js
Copied!
await (
await fetch("https://us-central1-anno-414704.cloudfunctions.net/annopatch-server?annoProjectName=hata6502&url=https%3A%2F%2Fexample.com%2F")
).json();

デプロイ方法
GitHub ActionsのArtifactsでannopatch-serverをダウンロード
zipをアップロードする

インフラ構築ログ
Google Cloud Functions
公開APIなので未認証にする
帯域制限かける
初期値は100だった
エントリポイント変える
Google Cloud CDN
サーバーレスNEGとか必要
Powered by Helpfeel