impress-2020/vercel.json
Matchu adf70dc25f Use chrome-aws-lambda for assetImage
Okay cool, this one worked! We use this special Chrome package with AWS Lambda support, and then we use normal Playright in dev, and then we exclude `playwright` from the deployment (even though it got auto-detected by `require("playwright")`) to just barely sneak in under the 50MB limit for this function. Phew!

The preview deploys for this seem to be, actually working? So that's exciting!
2021-08-19 16:27:22 -07:00

31 lines
845 B
JSON

{
"routes": [
{
"src": "/user/(?<userId>[^/]+)/(closet|items)",
"status": 308,
"headers": { "Location": "/user/$userId/lists" }
},
{
"src": "/outfits/(?<id>[^/]+)/(?<size>150|300|600)\\.png",
"dest": "/api/outfitImage.js?size=$size&id=$id"
},
{
"src": "/outfits/(?<id>[^/]+)/v/(?<updatedAt>[^/]+)/(?<size>150|300|600)\\.png",
"dest": "/api/outfitImage.js?size=$size&id=$id&updatedAt=$updatedAt"
},
{ "src": "/outfits/new(\\?|$)", "dest": "/index.html" },
{ "src": "/outfits/(?<id>[^/]+)", "dest": "/api/outfitPageSSR.js?id=$id" },
{
"handle": "filesystem"
},
{
"src": "/static/js/[^.]*\\.[^.]*\\.chunk.js",
"status": 404
}
],
"functions": {
"api/assetImage.js": {
"excludeFiles": "node_modules/playwright/**"
}
}
}