You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Google AMP framework needs a specific HTML template because a normal HTML document doesn't validate.
For that reason, the @frontity/amp package needs to be able to overwrite the hardcoded HTML template.
This can be done with a beforeSSR function but needs the template to be exposed in libraries.frontity.
Render to Static Markup
The Google AMP framework doesn't need the custom data- attributes added by React, so instead of using renderToString, the @frontity/amp package needs to make Frontity use renderToStaticMarkup.
This can be done with a beforeSSR function. It'll be necessary to create a separate server.js file because we don't want to add react-dom/server to the client bundle.
@SantosGuillamot I've just noticed that the Sprint Card links get outdated. Maybe that's another good option to remove them in favor of the Feature Boards (the less work the better).
This is part of the AMP feature. For full context please check out the final Implementation proposal.
HTML template
The Google AMP framework needs a specific HTML template because a normal HTML document doesn't validate.
For that reason, the
@frontity/amp
package needs to be able to overwrite the hardcoded HTML template.This can be done with a
beforeSSR
function but needs thetemplate
to be exposed inlibraries.frontity
.Render to Static Markup
The Google AMP framework doesn't need the custom
data-
attributes added by React, so instead of usingrenderToString
, the@frontity/amp
package needs to make Frontity userenderToStaticMarkup
.This can be done with a
beforeSSR
function. It'll be necessary to create a separateserver.js
file because we don't want to addreact-dom/server
to the client bundle.It needs the
render
function to be exposed inlibraries.frontity
.The text was updated successfully, but these errors were encountered: