12/21/2020, 9:19 PM
Is there a way, using awsx.apigateway.API, to add a default static route that serves the contents of /index.html? So that an SPA will be loaded when the route isn't an API call, and the response from the s3 bucket is 404? I cannot find the configuration, I think it needs to be added to the route config I have to the s3 static bucket:
Copy code
  method: 'ANY',
  path: '/',
  localPath: path.join(__dirname, '../', 'frontend', 'build'),
but I don't see any options for it.