Harry Collin
04/20/2021, 9:57 AMHarry Collin
04/20/2021, 10:29 AMHarry Collin
04/20/2021, 10:31 AMFrank
Frank
export async function main() {
const response = Buffer.from("hello world").toString('base64');
console.log(response);
return {
statusCode: 200,
body: response,
};
}
So it’s probably not base64 related?Frank
Frank
Harry Collin
04/20/2021, 10:13 PMreturn {
"isBase64Encoded": true,
"statusCode": 200,
"headers": {
"content-type": "image/png",
"cache-control" : "max-age=86400",
'Access-Control-Allow-Headers' : '*',
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Credentials': true,
},
"body": base64
}
I upgraded to v0.12.1 but didn't seem to have any luck. The response is very large for a console view and doesn't really make sense to show it.Frank
base64
?Harry Collin
04/21/2021, 10:50 AMHarry Collin
04/21/2021, 10:50 AMHarry Collin
04/21/2021, 10:51 AMHarry Collin
04/21/2021, 10:53 AMHarry Collin
04/21/2021, 10:54 AMHarry Collin
04/21/2021, 12:11 PMFrank
Frank
0.13.1-next.8
, and it would be great if you can help me confirm that it works. To test it out, you just have to change the SST version in your package.json:
"@serverless-stack/cli": "0.13.1-next.8",
"@serverless-stack/resources": "0.13.1-next.8"
Then run npm/yarn install.Frank
Frank
Harry Collin
04/26/2021, 10:35 AMFrank
Harry Collin
04/26/2021, 7:00 PMFrank
Harry Collin
04/30/2021, 9:38 AM