feat(admin,admin-ui,medusa): Add Medusa Admin plugin (#3334)
This commit is contained in:
committed by
GitHub
parent
d6b1ad1ccd
commit
40de54b010
26
packages/admin-ui/vite.config.dev.ts
Normal file
26
packages/admin-ui/vite.config.dev.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
/// <reference types="vitest" />
|
||||
import react from "@vitejs/plugin-react"
|
||||
import dns from "dns"
|
||||
import { defineConfig } from "vite"
|
||||
|
||||
// Resolve localhost for Node v16 and older.
|
||||
// @see https://vitejs.dev/config/server-options.html#server-host.
|
||||
dns.setDefaultResultOrder("verbatim")
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
test: {
|
||||
environment: "jsdom",
|
||||
globals: true,
|
||||
setupFiles: ["/test/setup.ts"],
|
||||
},
|
||||
root: "ui",
|
||||
define: {
|
||||
__BASE__: JSON.stringify("/"),
|
||||
__MEDUSA_BACKEND_URL__: JSON.stringify("http://localhost:9000"),
|
||||
},
|
||||
build: {
|
||||
outDir: "preview",
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user