Skip to content
Permalink
Browse files

Add alias

  • Loading branch information...
peter-stuhlmann committed Jul 15, 2019
1 parent 475b8e4 commit 42e1c1e53a302ca2b4f32802a99b777ca77b460f
Showing with 10 additions and 8 deletions.
  1. +10 −8 now.json
@@ -1,14 +1,16 @@
{
"version": 2,
"name": "color-converter-api",
"builds": [
{ "src": "index.js", "use": "@now/node" }
],
"routes": [{
"src": "/(.*)",
"dest": "/index.js",
"headers": {
"alias": ["color-converter.com", "www.color-converter.com"],
"builds": [{
"src": "index.js",
"use": "@now/node"
}],
"routes": [{
"src": "/(.*)",
"dest": "/index.js",
"headers": {
"cache-control": "s-maxage=31536000,immutable"
}
}
}]
}

0 comments on commit 42e1c1e

Please sign in to comment.
You can’t perform that action at this time.