What does `engines` field denote in the `package.json` that comes with a theme

The documentation here shows a package.json that comes with a theme can have engines option:

{
    "name": "your-theme-name",
    "description": "A brief explanation of your theme",
    "version": "0.5.0",
    "engines": {
        "ghost-api": "v2"
    },

I’m wondering what’s it for? At first I thought I could define engines for the site app, but it seems that site app always uses express-handlebars. So does it simply control the API version for the server the theme is activated on?

Yep! With the release of APIv2, the core team needed to differentiate between themes using the v2 and v0.1 API, so this was added :slight_smile:

1 Like

Got it, thanks a lot @vikaspotluri123 for the prompt reply!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.