Guidance Needed: Real-World Implementation of Optimizely SaaS on Next.js

Vote:
 

Hi all,

I’m seeking advice on setting up a real-world implementation of Optimizely SaaS with Next.js. Here’s our setup:

  • Optimizely SaaS CMS for content editing.
  • Content Graph subscription to expose content.
  • Next.js rendering host to render content.

Questions:

  1. On-Page Editing Setup:

    • I’m considering using a separate Next.js editing host for CMS users to preview content and enable On-Page Editing.
    • However, I’m unsure how the editing host will fetch content. Specifically:
      • Will we require an additional Content Graph subscription?
      • If not, how can the editing host query unpublished content from Content Graph?
  2. Multisite Setup in Next.js:

    • For multisite scenarios (e.g., Mosey Bank and Music Festival demos), we currently use the getContentByPath query to fetch content from Content Graph based on the URL.
    • This approach doesn’t seem robust or scalable. Are there better alternatives for multisite content retrieval?

I’d appreciate any insights, suggestions, or best practices for addressing these challenges.

Thank you in advance!

#333591
Nov 28, 2024 23:22
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.