This repository was archived by the owner on May 10, 2021. It is now read-only.
Commit f2db852
committed
_redirects file: Remove path param from Netlify functions
In the past, there was a difference between how Netlify and netlify dev
handled redirects. Only on the Netlify platform would the original path
be available to the function (e.g. /mypage). Locally, only the function
path would be available (e.g. /.netlify/functions/nextRouter).
This caused a problem when we want to identify the page to render in
nextRouter. Locally, we did not know the original path as requested by
the user. To work around that, we passed the page's path as a parameter
to the function call.
This behavior of netlify dev was fixed in
netlify/cli#7131 parent 883b04e commit f2db852
File tree
4 files changed
+9
-22
lines changed- lib
- tests
4 files changed
+9
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 28 | | |
39 | 29 | | |
40 | 30 | | |
41 | 31 | | |
42 | | - | |
43 | 32 | | |
44 | 33 | | |
45 | 34 | | |
46 | 35 | | |
47 | | - | |
48 | 36 | | |
49 | 37 | | |
50 | 38 | | |
51 | 39 | | |
52 | 40 | | |
53 | 41 | | |
54 | 42 | | |
55 | | - | |
56 | 43 | | |
57 | 44 | | |
58 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
0 commit comments