You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -171,7 +171,7 @@ export default defineConfig({
171
171
});
172
172
```
173
173
174
-
## Gotchas / Troubleshooting
174
+
## Troubleshooting
175
175
176
176
### Database tables don't exist
177
177
@@ -195,11 +195,13 @@ This only applies if your app is embedded, which it will be by default.
195
195
196
196
### Non Embedded
197
197
198
-
Shopify apps are best when they are embedded into the Shopify Admin. This template is configured that way. If you have a reason to not embed your please make 2 changes:
198
+
Shopify apps are best when they are embedded in the Shopify Admin, which is how this template is configured. If you have a reason to not embed your app please make the following changes:
199
199
200
-
1. Change the `isEmbeddedApp` prop to false for the `AppProvider` in `/app/routes/app.jsx`
201
-
2. Remove any use of App Bridge APIs (`window.shopify`) from your code
202
-
3. Update the config for shopifyApp in `app/shopify.server.js`. Pass `isEmbeddedApp: false`
200
+
1. Ensure `embedded = false` is set in [shopify.app.toml`](./shopify.app.toml). [Docs here](https://shopify.dev/docs/apps/build/cli-for-apps/app-configuration#global).
201
+
2. Pass `isEmbeddedApp: false` to `shopifyApp()` in `./app/shopify.server.js|ts`.
202
+
3. Change the `isEmbeddedApp` prop to `isEmbeddedApp={false}` for the `AppProvider` in `/app/routes/app.jsx|tsx`.
203
+
4. Remove the `@shopify/app-bridge-react` dependency from [package.json](./package.json) and `vite.config.ts|js`.
204
+
5. Remove anything imported from `@shopify/app-bridge-react`. For example: `NavMenu`, `TitleBar` and `useAppBridge`.
203
205
204
206
### OAuth goes into a loop when I change my app's scopes
0 commit comments