modiimedia / contentful-hugo

A CLI tool that pulls data from Contentful and turns it into markdown files for Hugo and other static site generators. It also includes an express server that can be used for local development and content previews

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configurable Space Branch

Matt-Jensen opened this issue · comments

Currently space environments are in alpha so don't think this feature is super urgent.

However the ability to configure the desired branch of a space, defaulting to master, from an environment variable will eventually be necessary for working with newer Contentful spaces. That said I don't see any issue with this new feature being rolled out while Contentful get's it ironed out on their end.

Only potential gotcha I've found that should be documented is that tokens can be scoped to branches.

@Matt-Jensen this issue is now closed as of #26

You can see in the advanced config example provided in the readme of how this can be accomplished.

Cheers

Thank you @joshmossas, you're amazing!