[PAGES-238] Load SPA from external server Created: 10/Feb/20  Updated: 17/Dec/21  Resolved: 01/Sep/21

Status: Closed
Project: Magnolia pages module
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Story Priority: Neutral
Reporter: Christopher Zimmermann Assignee: Unassigned
Resolution: Duplicate Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to PAGES-211 Investigate: Extract GWT page-editor ... Closed
dependency
is depended upon by MGNLFE-88 Support for Next.js Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Epic Link: External SPA

 Description   

As a SPA developer I want to run the page editor on a SPA on an external server, so that developing with it is easier, maintaining it is easier, and so that authors get a perfect preview

Notes:

Currently, it is not possible for the page editor to directly operate on a page loaded from a different domain in an Iframe due to browser security restrictions. 

In a truly headless scenario, the SPA may be running on a external server. For example React apps often run on a Next server, Vue apps often run on a Nuxt server.

Even if not using any of these frontend servers, developers benefit when they dont need to always have this extra step of deploying the SPA to the magnolia light module when there are changes. 

 

Acceptance criteria:

  • Developer only needs to provide the URL of the external server in their template definition.
  • Works with "nextjs".
  • Works with "gatsby".

There is an Incubator module which does this:

https://wiki.magnolia-cms.com/display/SERVICES/SPA+renderer+extended

Notes from meeting which describe rationale of "spa-renderer-extended":

https://wiki.magnolia-cms.com/display/TH2/2020-10-07+External+SPA+Braindump



 Comments   
Comment by Christopher Zimmermann [ 11/Jun/20 ]

It looks like this approach may solve the requirement:

https://wiki.magnolia-cms.com/display/SERVICES/SPA+renderer+extended

 

Comment by Christopher Zimmermann [ 01/Sep/21 ]

This is an older ticket that is essentially described/captured in the epic itself, https://jira.magnolia-cms.com/browse/PAGES-414 therefore it is redundant. - closing as duplicate.

Generated at Mon Feb 12 06:16:58 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.