Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static production amp dev #6533

Merged
merged 6 commits into from
Nov 28, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
another email example endpoint fix
  • Loading branch information
patrickkettner committed Nov 22, 2022
commit 91cbe8d7a8b006197de812f4b0c7516d4e745a26
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const handler = async (ev) => {
headers: {
'Cache-Control': getMaxAgeStr(60 * 60), // 1h
'Access-Control-Allow-Origin': ev.headers?.origin || '',
'Access-Control-Allow-Credentials': true,
'Content-Type': 'application/json',
},
body: JSON.stringify({
Expand Down Expand Up @@ -83,6 +84,7 @@ const handler = async (ev) => {
statusCode: 200,
headers: {
'Content-Type': 'application/json',
'Access-Control-Allow-Credentials': true,
'Access-Control-Allow-Origin': ev.headers?.origin || '',
},
body: JSON.stringify(results),
Expand Down