Rick Lam
b4e8adfcf9
fix(admin-ui): Admin UI: Invalid Request Header ( #5548 )
...
**What**
Fix of https://github.com/medusajs/medusa/issues/4904
**Fixes**
Admin run development server with hostname shown Invalid Request Header
**How**
Added webpack-dev-server config [allowedHosts](https://webpack.js.org/configuration/dev-server/#devserverallowedhosts ) and [webSocketUrl](https://webpack.js.org/configuration/dev-server/#websocketurl ) in admin develop options to change allowlist services hostname and Web Socket Url
**Testing**
Edit medusa-config.js with hostname in admin plugin develop options
```
const plugins = [
// ...
{
resolve: "@medusajs/admin",
/** @type {import('@medusajs/admin').PluginOptions} */
options: {
develop: {
allowedHosts: [
'host.com',
'subdomain.host.com',
'subdomain2.host.com',
'host2.com',
],
webSocketURL: 'wss://host.com/ws'
},
},
},
]
```
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-11-09 12:32:27 +00:00
Kasper Fabricius Kristensen
b69f182571
fix(admin-ui): modify webpack config to prevent throwing sourcemap errors ( #5484 )
2023-10-30 12:06:58 +01:00
Kasper Fabricius Kristensen
3376f4ccc1
fix(admin-ui): alias design system packages ( #5358 )
...
* alias design system packages
* add changeset
2023-10-13 14:49:17 -07:00
Oli Juhl
c722440c30
fix(admin-ui): Load translations from path ( #5064 )
...
* fix(admin-ui): Load translations from path
* Create big-oranges-battle.md
* fix: resolve public folder path in dev
---------
Co-authored-by: Kasper <kasper@medusajs.com >
2023-09-15 13:19:24 +02:00
Kasper Fabricius Kristensen
cb67760f71
fix(admin,admin-ui): copy public folder as part of admin build ( #5057 )
...
**What**
- Copies `/public` folder into Admin build
- Updates the version of `dotenv` to match the version used in other Medusa dependencies. This will prevent errors when trying to link the `admin` package into a local repository for testing.
2023-09-15 09:47:11 +00:00
Kasper Fabricius Kristensen
f1a05f4725
feat(admin, admin-ui, medusa-js, medusa-react, medusa): Support Admin Extensions ( #4761 )
...
Co-authored-by: Rares Stefan <948623+StephixOne@users.noreply.github.com >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-08-17 12:14:45 +00:00
Kasper Fabricius Kristensen
8a7421db5b
feat(admin): Improve DX for deploying admin externally ( #3418 )
...
* init deploy command
* add include flag
* add 'shortcut' flag
* add dev command, fix var replacement, change default behaviour
* cleanup params of build command
* fix defaults when using the plugin to serve admin
* add changeset
* fix globals
* update README
* throw error on no build found
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-03-17 13:18:51 +01:00
Kasper Fabricius Kristensen
40de54b010
feat(admin,admin-ui,medusa): Add Medusa Admin plugin ( #3334 )
2023-03-03 10:09:16 +01:00