Matchu
0eec503b91
This is mostly for decoupling's sake: I want pretty outfit URLs that aren't dependent on the `/api/outfitImage` path structure, so that we can serve them as ~permanent pretty URLs that don't actually indicate where or how the image is stored.
17 lines
462 B
JSON
17 lines
462 B
JSON
{
|
|
"routes": [
|
|
{
|
|
"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
|
|
}
|
|
]
|
|
}
|