I am using next.jsnext.js
multisite plugin
I have configureconfigured 2 sites in env.sites env.sites
, cft
and mpoc
. JSS app name is cftcft
. I have created _site_cft_site_cft
and _site_mpoc_site_mpoc
rewrite paths under src/pages
. But, the app always fetches cftcft
layout data even for mpocmpoc
hostname. I have turned on the debugger on middleware and added some logs. The middleware is redirecting correctly but getstaticpaths
context in [[,,path]].tsx
file not containing site rewrite path. Due to this, page props factory always calling layoutdatalayoutdata
of cftcft
Will be great if someone can help on this
Thanks