Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: preview server configuration and usage #77

Merged
merged 6 commits into from
Jul 8, 2021
Merged

Conversation

Zoramite
Copy link
Member

@Zoramite Zoramite commented Jul 7, 2021

Currently the editor does not correctly do previewing since the preview server has been separated from the UI. This work add the configuration ability for projects to have a preview server url and configuration.

Preview servers are required to return a config file that has the route information that the editor can map from the file path to the serving url:

For example:

{
  "routes": {
    "/content/pages/index.yaml": {
      "en": {
        "path": "/",
        "title": "Coolest site evar!",
      },
    "/static/images/foo.png": {
        "path": "/img/foo.png"
      }
    }
  }
}

@Zoramite Zoramite self-assigned this Jul 7, 2021
@Zoramite Zoramite added the enhancement Small feature update or improvement label Jul 7, 2021
@Zoramite Zoramite marked this pull request as ready for review July 8, 2021 22:02
@Zoramite Zoramite merged commit 231ea48 into main Jul 8, 2021
@Zoramite Zoramite deleted the feature/previewServer branch July 8, 2021 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Small feature update or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant