Preview URL returning Blank page

Hi All,

We have created a channel in our application with all the required configurations. While accessing site(www.channelnamee.com/preview) preview node, It returns blank page.

Attached yaml configuration for more details.

Please suggest, if am missing any configuration.

Note: enabled pagemodelapi for the channel.

/channelname:
jcr:primaryType: hst:virtualhost
jcr:uuid: b3eaef32-bf15-452d-a281-b808ac003db1
/qa:
jcr:primaryType: hst:virtualhost
jcr:uuid: 0349f36a-acd8-4268-81be-43e9fbcc5249
/www-ws3:
jcr:primaryType: hst:virtualhost
jcr:uuid: 2791fbf3-192c-4381-8216-eaf50425b2fe
/hst:root:
jcr:primaryType: hst:mount
jcr:uuid: c052efe0-65bf-4716-be56-f2042cf62cfd
hst:homepage: root
hst:linkurlprefix: https://www-ws3.qa.channelname.com
hst:mountpoint: /hst:hst/hst:sites/channelname
hst:pagemodelapi: resourceapi
hst:responseheaders: [‘Access-Control-Allow-Origin: *’, ‘Access-Control-Allow-Headers:
HST-Authorization’, ‘Content-Security-Policy: frame-ancestors https://cms-ws3.qa.channelname.com/;’]
hst:showcontextpath: true
/preview:
jcr:primaryType: hst:mount
jcr:uuid: 95b5fbef-e2e6-4737-bf5a-b18860435b7a
hst:channelpath: /hst:hst/hst:configurations/channelname-preview
hst:mountpoint: /hst:hst/hst:sites/channelname
hst:type: preview
/rest:
jcr:primaryType: hst:mount
jcr:uuid: 5c0c29d5-b0d3-4005-9301-3ce5bfe3f507
hst:ismapped: false
hst:namedpipeline: JaxrsRestPlainPipeline
hst:nochannelinfo: true
hst:types: [rest]
/cmsapi:
jcr:primaryType: hst:mount
jcr:uuid: a3cd5d71-5afc-4830-8128-c4f7291eafa9
hst:ismapped: false
hst:namedpipeline: JaxrsRestPlainPipeline
hst:nochannelinfo: true
hst:types: [rest]
/contentapi:
jcr:primaryType: hst:mount
jcr:uuid: 4eca536b-e2d0-41df-9c2a-c8af000a225e
hst:alias: contentapi
hst:ismapped: false
hst:namedpipeline: RestApiPipeline
hst:types: [rest]

Thanks,
Yeshwanth.

@machak could you please help.

Following part doesn’t seem to be right:

hst:channelpath: /hst:hst/hst:configurations/channelname-preview
hst:mountpoint: /hst:hst/hst:sites/channelname

You don’t need to define channel path, or add any “-preview” configuration. Everything is same as fo your normal channel, you just mark it as preview via hst:type property, that is all.Just adding:

hst:type: preview

should be enough.

@machak
we have removed the channelpath and mountpoint properties. No Luck !

we have enabled pagemodelapi for this channel, all our pages will be loading based on resourceapi JSON response.
when we tried accessing https://www-ws3.qa.channelname.com/preview node it is trying to fetch the JSON response from https://www-ws3.qa.channelname.com/preview/resourceapi which results in blank page.

can you please let me know how can we configure in this scenario ?

Thanks,
Yeshwanth.