webcomponents / webcomponents.org

Home of the web components community
https://www.webcomponents.org
Apache License 2.0
356 stars 95 forks source link

Enable SSR for 11ty #1400

Closed justinfagnani closed 1 year ago

justinfagnani commented 1 year ago

Fixes #1337

This doesn't integrate @lit-labs/eleventy-plugin-lit though, because we're sharing a template between 11ty and the server-generated catalog pages. We want to support content from 11ty which is a string, and content from server code which passes JS data into lit-html templates. So we want a lit-html template with a hole that can take unsafeHTML content or TemplateResults. The end result is much like @lit-labs/eleventy-plugin-lit

github-actions[bot] commented 1 year ago

A live preview of this PR will be available at the URL below and will update on each commit. = The build takes ~5-10 minutes, and will 404 until finished.

https://pr1400---site-khswqo4xea-wl.a.run.app/

Warning Until our Cloud Run project is public, only authorized users can view the above URL. The easiest way to view it authenticated is to run the following proxy command and visit http://localhost:5453

(gcloud beta run services proxy --project=webcomponents-org-test --region=us-west2 --tag=pr1400 --port=5453 site \
& gcloud beta run services proxy --project=webcomponents-org-test --region=us-west2 --tag=pr1400 --port=6453 catalog)