Vtex Io Rootpath

Apply when building VTEX IO apps that must work correctly in multi-binding stores where bindings use path prefixes (e.g. store.com/us/, store.com/br/). Covers rootPath extraction from x-vtex-root-path header, useRuntime().rootPath in React, URL construction in backends, link generation, asset paths, and API route considerations. Use when the app breaks or produces wrong URLs in cross-border or multi-binding setups.

vtex 6215cad 10.2 KB Updated

File contents

vtex/skills/tree/main/skills/vtex-io-rootpath commit 6215cad7c3

Frequently asked questions

npx skillmds add vtex/vtex-io-rootpath