-
Notifications
You must be signed in to change notification settings - Fork 0
/
now.json
36 lines (36 loc) · 1.14 KB
/
now.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"name": "webpipe-examples",
"version": 2,
"builds": [
{ "src": "www/package.json", "use": "@now/next" },
{ "src": "api/calculate-square-root/*.js", "use": "@now/node" },
{ "src": "api/parse-url/*.js", "use": "@now/node" },
{ "src": "api/parse-rss/*.js", "use": "@now/node" },
{ "src": "api/convert-markdown-to-html/*.js", "use": "@now/node" },
{ "src": "api/pkg-news-api/*.js", "use": "@now/node" },
{ "src": "api/scrape-url-html/*.js", "use": "@now/node" },
{ "src": "api/upload-url-to-s3/*.js", "use": "@now/node" },
{ "src": "api/inspect-hostname-dns/*.js", "use": "@now/node" }
],
"routes": [
{
"src": "/(.*)",
"methods": ["POST", "OPTIONS"],
"dest": "api/$1"
},
{
"src": "/(.*)",
"methods": ["GET"],
"dest": "www/?slug=$1"
}
],
"regions": ["gru1", "hnd1", "iad1", "sfo1"],
"env": {
"AWS_S3_ACCESS_KEY": "@aws_s3_access_key",
"AWS_S3_SECRET_KEY": "@aws_s3_secret_key",
"AWS_S3_BUCKET": "@aws_s3_bucket",
"API_KEY_NEWSAPI": "@api_key_newsapi",
"SCRAPER_API_ORIGIN": "@scraper_api_origin",
"SCRAPER_API_KEY": "@scraper_api_key"
}
}