Learn how to customize the Medusa Admin UI and use it as a standalone app
medusa
in your current working directory, we will now navigate into the folder and select the tag that we want to use.
dashboard
package from the packages/admin
folder and copy it somewhere else than in the Medusa project, this will be your standalone app folder.
Alright once you have your dashboard, I invite you to create a .yarnrc.yml
file in the root of the dashboard folder with the following content:
yarn
command to install the dependencies of the dashboard.
http://localhost:5173
by defaultvite.config.mts
file, allowing you to start the development mode without any issues, but just in case you need to override them, you can do so by creating a .env
file in the root of the dashboard folder and use
the different variables that are available inside the vite.config.mts
file.
vite build
action is available in the package.json
file under the build:preview
script.