From db098d3fe64d764dfe84dff4f58a664c21bf7f68 Mon Sep 17 00:00:00 2001 From: MAX-786 Date: Sat, 22 Jun 2024 19:05:12 +0530 Subject: [PATCH] add doc about env format and docker backend --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 39d6342..78512fd 100644 --- a/README.md +++ b/README.md @@ -60,16 +60,20 @@ To test against a local hydra instance ```bash make start ``` +- You can also set your preset frontend URLs with environment variables, making them available in the admin UI. This allows you to switch between them seamlessly: + ```bash + RAZZLE_DEFAULT_IFRAME_URL=http://localhost:3002,https://hydra-blogsite-nextjs.vercel.app pnpm start + ``` + You can find `.env.example` at root directory of the project. - Ensure Volto is running on port 3000. **3. Start the Plone Backend** -- You can start the Plone backend using Docker images, or you can navigate to the core/api directory in Volto-Hydra and run: +- You can start the Plone backend using Docker images: ```bash - cd core/api - make start + make backend-docker-start ``` - + ***Note :*** This will also set `CORS_ALLOW_ORIGIN` to `'*'`, so there are no cors error. ### Deploy your frontend Use netlify or similar and make your frontend public and then let us know by creating a ticket and we will advertise your frontend