feat: expose backend url in admin options (#7370)

This commit is contained in:
Oli Juhl
2024-05-20 11:24:15 +02:00
committed by GitHub
parent 028f63eb63
commit c9bffdfecb
3 changed files with 8 additions and 7 deletions

View File

@@ -33,6 +33,10 @@ export type AdminOptions = {
* The default value is `./build`.
*/
outDir?: string
/**
* The URL of your Medusa server. Defaults to an empty string, which means requests will hit the same server that serves the dashboard.
*/
backendUrl?: string
/**
* Configure the Vite configuration for the admin dashboard. This function receives the default Vite configuration
* and returns the modified configuration. The default value is `undefined`.