Hello
I created two page models content pages.
The page url also has the same two.
What I want to do is that when I log in, the page model content is exposed
If you haven’t logged in, I want the page model content to be exposed
const entryKey = isLogin
? process.env.NEXT_PUBLIC_ENTRY_KEY_COMMERCE_MAIN_LOGGED_IN
useEffect(() => {
builder
.get(process.env.NEXT_PUBLIC_PAGE_MODEL_COMMERCE_MAIN!, {
url: location.pathname,
entry: entryKey,
cacheSeconds: 0,
})
.promise()
.then((data) => {
console.log(data);
setBuilderContentJson(data);
setIsLoading(false);
});
}, [isLogin]);
I implemented it like this, but only the page model content is exposed on the screen.
Please help me with how to implement itPreformatted text