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

sst.aws.Router - Support for Cloudfront functions for viewer requests #41

Closed
cmanou opened this issue Mar 20, 2024 · 3 comments
Closed
Assignees

Comments

@cmanou
Copy link
Contributor

cmanou commented Mar 20, 2024

It would be nice to either directly or via transforms allow people to add viewer request functions and the like to routes in the router. My use case is to strip the prefix before it gets to the underlying function url , and also add additional headers to the request.

Alternative would be just exposing the Cdn resource so it can be done that way.

The current escape hatch I am doing is using pulumi directly means you also have to mess around with the dns validation etc, which is painful

ION-212

@fwang
Copy link
Contributor

fwang commented Mar 20, 2024

@cmanou Yeah we are going to expose and allow transforming on the Cdn component, just need to clean it up a bit.

@thdxr thdxr added the linear Created by Linear-GitHub Sync label Mar 28, 2024
@thdxr thdxr changed the title sst.aws.Router - Support for Cloudfront functions for viewer requests [ION-212] sst.aws.Router - Support for Cloudfront functions for viewer requests Mar 28, 2024
@thdxr thdxr added linear Created by Linear-GitHub Sync and removed linear Created by Linear-GitHub Sync labels Mar 28, 2024
@thdxr thdxr changed the title [ION-212] sst.aws.Router - Support for Cloudfront functions for viewer requests sst.aws.Router - Support for Cloudfront functions for viewer requests Mar 28, 2024
@fwang
Copy link
Contributor

fwang commented Apr 4, 2024

In v0.0.257, u can now transform on the Cdn component - https://ion.sst.dev/docs/component/aws/nextjs/#transform-cdn

@fwang fwang closed this as completed Apr 4, 2024
@cmanou
Copy link
Contributor Author

cmanou commented Apr 4, 2024

@fwang thanks for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants