-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a82c2a
commit 2864c59
Showing
6 changed files
with
100 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
tests/integration/__fixtures__/dev-server-with-v2-functions/netlify.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,27 @@ | ||
[build] | ||
publish = "public" | ||
|
||
[functions] | ||
directory = "functions" | ||
|
||
[[redirects]] | ||
force = true | ||
from = "/v2-to-legacy-with-force" | ||
status = 200 | ||
to = "/.netlify/functions/custom-path-literal" | ||
|
||
[[redirects]] | ||
from = "/v2-to-legacy-without-force" | ||
status = 200 | ||
to = "/.netlify/functions/custom-path-literal" | ||
|
||
[[redirects]] | ||
force = true | ||
from = "/v2-to-custom-with-force" | ||
status = 200 | ||
to = "/products" | ||
|
||
[[redirects]] | ||
from = "/v2-to-custom-without-force" | ||
status = 200 | ||
to = "/products" |
1 change: 1 addition & 0 deletions
1
tests/integration/__fixtures__/dev-server-with-v2-functions/public/products.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/products from origin |
1 change: 1 addition & 0 deletions
1
...egration/__fixtures__/dev-server-with-v2-functions/public/v2-to-custom-without-force.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/v2-to-custom-without-force from origin |
1 change: 1 addition & 0 deletions
1
...egration/__fixtures__/dev-server-with-v2-functions/public/v2-to-legacy-without-force.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/v2-to-legacy-without-force from origin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters