@kishanu
SSR should be on by default on AMP pages. To verify, take a look at the page source of an AMP page, and you should see the transformed="self;v=1"
attribute on the <html>
element.
( screenshot: https://share.getcloudapp.com/nOuNyywl )
For SSR to work WP_DEBUG needs to be set to false. Sometimes it will we set to true in wp-config.php for development purposes.
Yeah, we’ve currently made WP_DEBUG
the default way to disable the SSR. However, you can easily force it on regardless of WP_DEBUG
by doing:
add_filter( 'amp_enable_ssr', '__return_true' );