AppProxyProvider
Sets up a page to render behind a Shopify app proxy, enabling JavaScript and CSS to be loaded from the app.
Also provides components that enable using other components such as links and forms within proxies.
Caution
Because Remix doesn't support URL rewriting, any route using this component should match the pathname of the proxy URL exactly, and end in a trailing slash (e.g., https://<shop>/apps/proxy/).
Caution:
Because Remix doesn't support URL rewriting, any route using this component should match the pathname of the proxy URL exactly, and end in a trailing slash (e.g., https://<shop>/apps/proxy/).
Anchor to appproxyproviderpropsAppProxyProviderProps
Props for the component.
- Anchor to appUrlappUrlappUrlstringstringrequiredrequired
The URL where the app is hosted. You can set this from the
SHOPIFY_APP_URLenvironment variable.- Anchor to childrenchildrenchildrenReact.ReactNodeReact.ReactNode
The children to render.
Was this page helpful?