-
I'm aware that Serverless bundles and programmatic triggers will ship in v1.0.0 but I wanted to get some opinions on how to handle the following setup before 1.0.0 gets released, and maybe even after...using Eleventy Serverless or the Node API might be overkill for what I'm trying to do. If anyone has any other ideas, I'd love to hear them. I don't use static hosting due to some server side processes that I maintain on my own and so while I do have the power of a server-side environment behind my website, I definitely want to stay as static as possible. Scenerio: I'm trying to restrict access to some content on my personal site and have set up a (already implemented) method of authenticating who has access and who doesn't, setting a cookie for people that have access. Restricting access to pages is the easy part, the webserver can handle access to specific paths depending on whether a cookie was sent or not. Whats more difficult is the handling of index pages where I'd like to display the hidden pages to those who are "logged in" and keep them hidden from the index for those who aren't. The way I see it, I've got a few ways of handling this:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Did some looking into this, while I think using serverless infrastructure might be a little too specific for what I'm trying to do, I think the Node API forthcoming in 1.0.0 will do what I want, setting up hooks to serve different content based on context. I'll mark this off for now until I either have more information to share or others have insight to offer. |
Beta Was this translation helpful? Give feedback.
Did some looking into this, while I think using serverless infrastructure might be a little too specific for what I'm trying to do, I think the Node API forthcoming in 1.0.0 will do what I want, setting up hooks to serve different content based on context. I'll mark this off for now until I either have more information to share or others have insight to offer.