diff --git a/app/routes/app._index.jsx b/app/routes/app._index.jsx index 8cffe41..766c8bb 100644 --- a/app/routes/app._index.jsx +++ b/app/routes/app._index.jsx @@ -3,6 +3,7 @@ import { json, useFetcher, useLoaderData, useRevalidator } from "@remix-run/reac import { useAppBridge } from "@shopify/app-bridge-react"; import { authenticate } from "../shopify.server"; +// [START optional-scopes.index-loader] export const loader = async ({ request }) => { const { scopes } = await authenticate.admin(request); @@ -12,6 +13,7 @@ export const loader = async ({ request }) => { hasWriteProducts: scopesDetail.granted.includes("write_products"), }); }; +// [END optional-scopes.index-loader] export const action = async ({ request }) => { const { admin } = await authenticate.admin(request); diff --git a/shopify.example-config.toml b/shopify.example-config.toml index b66364a..62588da 100644 --- a/shopify.example-config.toml +++ b/shopify.example-config.toml @@ -1,24 +1,4 @@ -# Learn more about configuring your app at https://shopify.dev/docs/apps/tools/cli/configuration - -client_id = "8d886ba4bb02d514e23c2f3d37b8cb59" -name = "scopes-tuts-2025-08" -handle = "scopes-tuts-2025-08" -application_url = "https://example.com/" -embedded = true - -[build] -include_config_on_deploy = true - -[webhooks] -api_version = "2025-07" - - [[webhooks.subscriptions]] - topics = [ "app/uninstalled" ] - uri = "/webhooks/app/uninstalled" - - [[webhooks.subscriptions]] - topics = [ "app/scopes_update" ] - uri = "/webhooks/app/scopes_update" +# ... [access_scopes] # [START optional-scopes.declare-in-app-toml] @@ -26,8 +6,4 @@ scopes = "read_products" optional_scopes = [ "write_products" ] # [END optional-scopes.declare-in-app-toml] -[auth] -redirect_urls = ["https://example.com/api/auth"] - -[pos] -embedded = false +# ...