Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Commit 72a9020

Browse files
committed
eeeddiitts
1 parent ded1fad commit 72a9020

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_drafts/wework-com-is-going-static.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ So how are we serving up traffic to `wework.com/locations/` from the static host
9191
extensions: [
9292
netlify
9393
rewrites:
94-
'/': originUrl
95-
'/*': originUrl + '/:splat'
94+
'/': process.env.ORIGIN_URL
95+
'/*': process.env.ORIGIN_URL + '/:splat'
9696
```
9797

98-
Which basically says, route all traffic through to `originUrl`, which is defined further up using `ENV` variables. We never have to touch this rule, and as soon as we added the `/locations/index.html` resource to our static site, Netlify was smart enough to serve that page vs proxying it through.
98+
Which basically says, route all traffic through to `ORIGIN_URL`. We never have to touch this rule, and as soon as we added the `/locations/index.html` resource to our static site, Netlify was smart enough to serve that page vs proxying it through.
9999

100100

101101
The reality is that we are currently maintaining two versions of our site as we move things over, but this allows us to continue doing business as usual, make updates to existing pages and not have to stop our normal workflow as we migrate things over little by little. What's great about all of this is that we are sharing the same data across both sites.

0 commit comments

Comments
 (0)