saleor-dashboard/testUtils/setup.ts
Lukasz Ostrowski e06d3bdf0d
Improve dashboard and marketplace connection (#2666)
* Change env variables related to marketplace, add navigation item

* Change apps order

* Add button to browse marketplace

* Add redirect to Saleor Apps Marketplace on button click

* Move apps tabs state to URL

* Pass theme for initial marketplace iframe load

* Improve marketplace mount

* fix types

* fix cr

* Update env variables to disable marketplace on envs other than master staging

* Extract locales

* update snapshots
2022-11-30 17:20:20 +01:00

10 lines
342 B
TypeScript

document.getElementById = () => document.createElement("div");
window.__SALEOR_CONFIG__ = {
API_URL: "http://localhost:8000/graphql/",
APP_MOUNT_URI: "/",
MARKETPLACE_URL: "http//localhost:3000",
SALEOR_APPS_PAGE_PATH: "/saleor-apps",
SALEOR_APPS_JSON_PATH: "/api/saleor-apps",
APP_TEMPLATE_GALLERY_PATH: "/template-gallery",
};