Need explanation on "Theme Kit Configuration"

shenkwen
Shopify Partner
12 0 1

Hello everyone. I am new to developing and I was reading Theme Kit Configuration

but don't quite get the big picture of how it is related to my project.

 

There are many questions and I am not quite sure which one is the best to ask here.
Let me start with this: Why do I need configurations? Can someone elaborate this with a use case? Thank you!

0 Likes
MagaliWD
Tourist
6 0 1

When you connect to your theme with themeKit a config file is generated by default, something like this :

development:
password: xxxxxxxxxxxxxxxxxxxx
theme_id: "xxxxxxxxxx"
store: xxxxxxxxxxx.myshopify.com
timeout: 60s
Password came from the private app you've created on your store.
You need more complexe configuration file only if you need to configure multiple environments for differents purpose with several themes on the same eshop.
Magali
shenkwen
Shopify Partner
12 0 1

I want to know what kind of "complex situation" there could be. Not that I expect to have that kind of situation, just need to have a concept

0 Likes
MagaliWD
Tourist
6 0 1

Hi, for exemple if you want to test something on another version of your theme. As you can see in the exemple there https://shopify.github.io/themekit/configuration/#config-file theme_id are not the same. This is common when coding to define multiple environments, but if it’s just to maintain your eshop you don’t need that.

0 Likes