Browse Source

site: proxy the installation script (#282)

remotes/origin/add-with-shims
Gal Schlezinger 4 years ago committed by GitHub
parent
commit
d77e1d20b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .gitignore
  2. 3
      site/package.json
  3. 17
      site/vercel.json

2
.gitignore vendored

@ -4,3 +4,5 @@ docs/screen_recording @@ -4,3 +4,5 @@ docs/screen_recording
**/*.rs.bk
feature_tests/.tmp
*.log
/site/public
.vercel

3
site/package.json

@ -4,6 +4,9 @@ @@ -4,6 +4,9 @@
"main": "index.js",
"author": "Gal Schlezinger",
"license": "MIT",
"scripts": {
"build": "rm -rf public; mkdir public; cp ../.ci/install.sh ./public/install.txt"
},
"devDependencies": {
"@vercel/node": "1.8.4",
"typescript": "4.0.3",

17
site/vercel.json

@ -1,6 +1,19 @@ @@ -1,6 +1,19 @@
{
"redirects": [
{ "source": "/", "destination": "https://github.com/Schniz/fnm" },
{ "source": "/install", "destination": "https://github.com/Schniz/fnm/raw/master/.ci/install.sh" }
{ "source": "/", "destination": "https://github.com/Schniz/fnm" }
],
"rewrites": [
{ "source": "/install", "destination": "/install.txt" }
],
"headers": [
{
"source": "/install",
"headers" : [
{
"key" : "Cache-Control",
"value" : "public, max-age=3600"
}
]
}
]
}

Loading…
Cancel
Save