serverless-express
serverless-express copied to clipboard
Can't access static files behind Cloudfront
I have used @vendia/serverless-express to serve my Express app on a Lambda function behind APIGateway. I'm able to access the website and https://example.com.com/robots.txt . When I put a Cloudfront distribution in front of API Gateway I can still access the website but not the robots.txt. It just shows the homepage.