Development
I don't see my Store Theme changes

After linking your Store Theme app, the changes are not reflected in the workspace.

Keywords: Store Theme | Workspace

Once you link your app, you should see all your changes live at https://{workspace}--{accountName}.myvtex.com. If the changes in your Store Theme app aren't reflecting on your store workspace, check the following solutions to fix your scenario.

Solution

My workspace does not reflect changes in Typescript types

The vtex link command doesn't automatically detect changes in Typescript types. To address this issue, follow these steps:

  1. Stop the link process with vtex unlink.
  2. Update the Typescript types in your code.
  3. Run vtex link to link the app again.

My endpoint is returning outdated values

If your endpoint is returning outdated values, consider disabling caching temporarily by setting the no-cache option on the endpoint response, as in the following example:


_10
ctx.set('Cache-Control', 'no-cache')

Please note that caching is enabled by default to enhance performance. Only use this option during development if a real-time response is necessary. Don't disable caching for production stores by removing the no-cache option.

There is a conflict between the installed and the linked store themes

To see your changes, the version of the Store Theme you're working on must have the same major as the Store Theme app installed on your account.

  1. Log in to your VTEX account.
  2. List the apps installed on your account by running vtex ls.
  3. Check if the major of the Store Theme app installed is different from the one you're developing.
  4. Check if there's another Store Theme app installed on your VTEX account. If there is, uninstall it.
Contributors
1
Photo of the contributor
Was this helpful?
Yes
No
Suggest Edits (GitHub)