sveltekit-adapter-aws icon indicating copy to clipboard operation
sveltekit-adapter-aws copied to clipboard

Cloudfront Function logs

Open ispyinternet opened this issue 9 months ago • 1 comments

Do you know why event isn't logging?

Screenshot 2024-05-08 at 13 34 33

Seems similar to this persons query:

https://stackoverflow.com/questions/76049017/in-my-lambdaedge-origin-request-function-the-event-parameter-is-empty

But I thought these functions would automatically get setup with service roles that allow logging.

Anyway, I wanted to view the logs to understand why it's necessary to have a viewer-request handler.

Before finding your package, I was running Sveltekit on Cloudfront, using SPA mode (which I still want to do, except for some server routes that I will use your handler for, e.g. /kit/server/* ). I didn't use (need?) a viewer-request, I just needed an origin-request that routed any misses on S3 to the svelte SPA fallback page.

Anyway nice package BTW. Due to the custom setup I need and the fact that my resources are deployed using a code pipeline (not CDK), I will probably end up having to pull out the bits of code I need, hence trying to understand all your moving parts.

ispyinternet avatar May 08 '24 12:05 ispyinternet