feat(dashboard,admin-vite-plugin): Add product zones and fix zone change effect (#7427)

**What**
- Adds injection zones to the product domain.
- Fixes an issue where changing the `zone` in a widget config to another valid widget would not trigger a HMR event.
- Fixes an issue where UI Routes would not work in production.
This commit is contained in:
Kasper Fabricius Kristensen
2024-05-23 21:13:42 +02:00
committed by GitHub
parent 8a070d5d85
commit 6ec6e2c7b6
6 changed files with 114 additions and 59 deletions

View File

@@ -7,7 +7,7 @@ declare module "virtual:medusa/widgets/*" {
}
declare module "virtual:medusa/routes/pages" {
const pages: { path: string; file: string }[]
const pages: { path: string; Component: () => JSX.Element }[]
export default {
pages,