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

Create lambda@edge function to rewrite requests and deploy via CDK #83

Closed
v79 opened this issue Feb 14, 2024 · 2 comments · Fixed by #84
Closed

Create lambda@edge function to rewrite requests and deploy via CDK #83

v79 opened this issue Feb 14, 2024 · 2 comments · Fixed by #84
Assignees
Labels
enhancement New feature or request

Comments

@v79
Copy link
Owner

v79 commented Feb 14, 2024

  • Create a new module, nodeJS project
  • Add it to the CDK stack
  • Update the cantilever distribution to link the function as a viewer request behaviour
@v79 v79 self-assigned this Feb 14, 2024
@v79
Copy link
Owner Author

v79 commented Feb 15, 2024

Took a few attempts but I now have a lambda@edge function in the project and it deploys to us-east-1 region. I've had to explicitly set the region of the main project now, rather than relying on my AWS account's default.

@v79
Copy link
Owner Author

v79 commented Feb 15, 2024

I've also moved the content of cantilevers.org into a folder, and copied the rightnotes website content into its own folder too. All is working (except maybe the rightnotes home page, annoyingly).

@v79 v79 added the enhancement New feature or request label Feb 15, 2024
@v79 v79 linked a pull request Feb 15, 2024 that will close this issue
@v79 v79 closed this as completed in #84 Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant