DEV Community

Discussion on: Serverless Server Side Rendering with Angular on AWS Lambda@Edge

Collapse
 
eelayoubi profile image
eelayoubi

If you search for something, or directly access the animal route such as 'd2htk1pm9r9gbg.cloudfront.net/anim...' you will see that it is server side rendered.

Collapse
 
seanvm profile image
Sean • Edited

Love this post, and nice work on getting this all working with Lambda@Edge. Only issue is I'm also seeing this same problem as the above person in my app with SSR on the root route. Any idea how to get SSR working for the root route? I'd rather not have to redirect to another page like you're doing.

SSR is working on all routes except for the root route. When running on localhost using the default server.ts file it works fine...

Thread Thread
 
achraflaakissi profile image
LAAKISSI Achraf

I solved the problem,It was with the Default root object CloudFront, it should be empty, the default value was index.html that's why I receive just the content of this file in SSR. also I check for the empty route on my lambda function. you can find more details here : stackoverflow.com/questions/704282...