Serve plugin assets from the repository root in the dev server
This commit is contained in:
@@ -10,6 +10,8 @@ export default defineConfig(({ mode }) => {
|
|||||||
server: {
|
server: {
|
||||||
host: "127.0.0.1",
|
host: "127.0.0.1",
|
||||||
port: 5173,
|
port: 5173,
|
||||||
|
// Plugin pages and their assets live outside platform_web, so the dev server must serve the repository root too.
|
||||||
|
fs: { allow: [".", ".."] },
|
||||||
proxy: {
|
proxy: {
|
||||||
"/api/v1": platformProxyTarget,
|
"/api/v1": platformProxyTarget,
|
||||||
"/healthz": platformProxyTarget
|
"/healthz": platformProxyTarget
|
||||||
|
|||||||
Reference in New Issue
Block a user