fix(admin-next,types): fixes order page from breaking in admin server (#8730)
This commit is contained in:
@@ -18,6 +18,7 @@ export async function getViteConfig(
|
||||
const root = path.resolve(__dirname, "./")
|
||||
|
||||
const backendUrl = options.backendUrl ?? ""
|
||||
const storefrontUrl = options.storefrontUrl ?? ""
|
||||
|
||||
const baseConfig: InlineConfig = {
|
||||
root,
|
||||
@@ -33,6 +34,7 @@ export async function getViteConfig(
|
||||
define: {
|
||||
__BASE__: JSON.stringify(options.path),
|
||||
__BACKEND_URL__: JSON.stringify(backendUrl),
|
||||
__STOREFRONT_URL__: JSON.stringify(storefrontUrl),
|
||||
},
|
||||
server: {
|
||||
fs: {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { AdminOptions } from "@medusajs/types"
|
||||
|
||||
export type BundlerOptions = Required<Pick<AdminOptions, "outDir" | "path">> &
|
||||
Pick<AdminOptions, "vite" | "backendUrl"> & {
|
||||
Pick<AdminOptions, "vite" | "backendUrl" | "storefrontUrl"> & {
|
||||
sources?: string[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user