-
Notifications
You must be signed in to change notification settings - Fork 50
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
Empty env object in templates #85
Comments
That information was historically passed into Bartholomew as environment variables because of the CGI spec and Wagi. Since moving Bartholomew to be a Spin component, most of that information is now passed as headers — see https://spin.fermyon.dev/http-trigger/ |
Thanks for pointing to the resource. As a follow-up, I see a If so what are the fields that would need to be added to the Once the headers are accessible from the templates, pagination will be possible using the URL query parameters. Any inputs would be greatly appreciated! |
Signed-off-by: Karthik Ganeshram <kganeshram@ucdavis.edu>
Signed-off-by: Karthik Ganeshram <kganeshram@ucdavis.edu>
Fixed by #90 |
The
env
object is missing data about the HTTP request, the path of this resource, and other Spin information in contradiction to the documentation. The only key-value pairs present in it are the environment variables set if any.Steps to reproduce:
env
objectspin up -env PREVIEW_MODE=1
main.hbs:
expected result:
obtained result:
The lack of HTTP request and PATH data limit the amount of dynamic generation that can be done. For example, Pagination of content would require path information.
The text was updated successfully, but these errors were encountered: