serverless-express icon indicating copy to clipboard operation
serverless-express copied to clipboard

Can't access static files behind Cloudfront

Open mauricevancooten opened this issue 2 years ago • 0 comments

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.

mauricevancooten avatar May 14 '23 23:05 mauricevancooten