This repository was archived by the owner on May 10, 2021. It is now read-only.
Commit 2ab1154
committed
Support custom headers for SSR pages and API endpoints
There are some minor differences between Netlify and AWS, such as AWS
having support for multi-value headers. next-aws-lambda is made for AWS,
so we need to resolve those differences to make everything work with
Netlify.
We support headers in SSR pages and API endpoints by converting the
first entry in each multi-value header into a plain header.
Netlify also requires all header values to be in string format, so we
take care of that, too.1 parent 2d30782 commit 2ab1154
1 file changed
+31
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
27 | 55 | | |
28 | 56 | | |
29 | 57 | | |
| |||
50 | 78 | | |
51 | 79 | | |
52 | 80 | | |
53 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
54 | 84 | | |
55 | 85 | | |
0 commit comments