Setting up publish to preview in local AEM | Community
Skip to main content
New Participant
October 24, 2024
Solved

Setting up publish to preview in local AEM

  • October 24, 2024
  • 5 replies
  • 1199 views

Would like to ask if there's a way to setup publish to preview site in local AEM instance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

In the end, for testing purposes it's not different from a normal publish. Instead of configuring it behind the "publish" replication agent, you need to create a "preview" replication agent for it.

5 replies

kautuk_sahni
Employee
November 5, 2024

@lyonmartin Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni
Harwinder-singh
New Participant
October 24, 2024

@lyonmartin Unfortunately, you can not do that locally. This is not even possible with RDEs in the AEM as cloud.

New Participant
October 29, 2024

If that's the case, is there a process or event that I can listen so I can check if the publish action will be for preview or publish?

joerghoh
joerghohAccepted solution
Employee
October 24, 2024

In the end, for testing purposes it's not different from a normal publish. Instead of configuring it behind the "publish" replication agent, you need to create a "preview" replication agent for it.

Asutosh_Jena_
New Participant
October 24, 2024

Hi @lyonmartin 

You cannot setup preview server on local. Instead you can setup a publish instance and use it for the same purpose.
Please refer this link to setup the publish instance locally: https://experienceleague.adobe.com/en/docs/experience-manager-learn/foundation/development/set-up-a-local-aem-development-environment#steps

Thanks,

Asutosh

arunpatidar
New Participant
October 24, 2024

Hi @lyonmartin 
Not sure if this is possible but in local you can work directly with publishers.

Arun Patidar