mirror of
https://github.com/uetchy/namae.git
synced 2025-03-17 04:30:31 +09:00
39 lines
767 B
JSON
39 lines
767 B
JSON
{
|
|
"version": 2,
|
|
"name": "namae",
|
|
"alias": "namae.dev",
|
|
"builds": [
|
|
{
|
|
"src": "/web/package.json",
|
|
"use": "@now/static-build",
|
|
"config": {"distDir": "build"}
|
|
},
|
|
{
|
|
"src": "/api/services/*.ts",
|
|
"use": "@now/node"
|
|
}
|
|
],
|
|
"routes": [
|
|
{
|
|
"src": "/availability/(?<provider>[^/]+)/(?<query>[^/]+)",
|
|
"dest": "/api/services/$provider.ts?query=$query"
|
|
},
|
|
{
|
|
"src": "/s/(.*)",
|
|
"dest": "/web/index.html",
|
|
"headers": {"cache-control": "s-maxage=86400"}
|
|
},
|
|
{
|
|
"src": "/(.*)",
|
|
"dest": "/web/$1",
|
|
"headers": {"cache-control": "s-maxage=86400"}
|
|
}
|
|
],
|
|
"env": {
|
|
"NTA_APPLICATION_ID": "@namae-nta-application-id"
|
|
},
|
|
"github": {
|
|
"silent": true
|
|
}
|
|
}
|