unikent / astro

MIT License
7 stars 2 forks source link

Fix/configurable urls #280

Closed sy238-unikent closed 6 years ago

sy238-unikent commented 6 years ago

Added the following to the .env(.sample) to allow configuring of where the main website renderer and preview renderer are hosted.

// URL patterns to use for viewing published pages and previewing draft pages APP_LIVE_URL_PATTERN=http://{domain}:8080{path} APP_PREVIEW_URL_PATTERN=http://astro.test:8080/draft/{domain}{path}

It is the editor rather than the API that will use these, although the values are currently injected into the Editor's Config object by the laravel bootstrapping code that creates the editor HTML page.