mirror of
https://github.com/kou029w/_.git
synced 2025-02-03 15:48:40 +00:00
313e4bdcba
Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/kornelski/http-cache-semantics/releases) - [Commits](https://github.com/kornelski/http-cache-semantics/compare/v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: http-cache-semantics dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.. | ||
api | ||
public | ||
src | ||
.gitignore | ||
package.json | ||
README.md | ||
vercel.json | ||
yarn.lock |
何をしたかったか
Fastify と fastify-autoload を使って Vercel にデプロイできるかどうかチェック。
結果
cjs かつ includeFiles に含めればとりあえず OK。
全部含めるなら **
でよい。
{
"functions": { "api/index.js": { "includeFiles": "**" } }
}
TypeScript の場合は、vercel-build
にビルドコマンドを指定する & ビルド後に生成されるファイルを指定する。(vercel.json を参照)
そういった設定をせず Vercel に任せると vercel dev
では問題ないが、デプロイすると参照に失敗して 500 エラー。