mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 04:40:05 +01:00
fix: db-studio prefix fixes
This commit is contained in:
@@ -219,7 +219,7 @@ func NewRouter(db *gorm.DB, jobs *bg.Jobs, studio http.Handler) http.Handler {
|
|||||||
adminOnly := httpmiddleware.RequirePlatformAdmin()
|
adminOnly := httpmiddleware.RequirePlatformAdmin()
|
||||||
gr.Use(authUser)
|
gr.Use(authUser)
|
||||||
gr.Use(adminOnly)
|
gr.Use(adminOnly)
|
||||||
gr.Mount("/db-studio", http.StripPrefix("/db-studio", studio))
|
gr.Mount("/db-studio", studio)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ func StartPgweb(dbURL, host, port string, readonly bool, user, pass string) (*Pg
|
|||||||
"--url", dbURL,
|
"--url", dbURL,
|
||||||
"--bind", host,
|
"--bind", host,
|
||||||
"--listen", port,
|
"--listen", port,
|
||||||
|
"--prefix", "/db-studio",
|
||||||
"--skip-open",
|
"--skip-open",
|
||||||
}
|
}
|
||||||
if readonly {
|
if readonly {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import path from "path"
|
import path from "path"
|
||||||
import tailwindcss from "@tailwindcss/vite"
|
import tailwindcss from "@tailwindcss/vite"
|
||||||
import { defineConfig } from "vite"
|
|
||||||
import react from "@vitejs/plugin-react"
|
import react from "@vitejs/plugin-react"
|
||||||
|
import { defineConfig } from "vite"
|
||||||
|
|
||||||
// https://vite.dev/config/
|
// https://vite.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@@ -9,7 +9,7 @@ export default defineConfig({
|
|||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
"@": path.resolve(__dirname, "./src"),
|
"@": path.resolve(__dirname, "./src"),
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
port: 5173,
|
port: 5173,
|
||||||
@@ -18,7 +18,7 @@ export default defineConfig({
|
|||||||
"/swagger": "http://localhost:8080",
|
"/swagger": "http://localhost:8080",
|
||||||
"/db-studio": "http://localhost:8080",
|
"/db-studio": "http://localhost:8080",
|
||||||
},
|
},
|
||||||
allowedHosts: ['.getexposed.io']
|
allowedHosts: [".getexposed.io"],
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
chunkSizeWarningLimit: 1000,
|
chunkSizeWarningLimit: 1000,
|
||||||
@@ -26,7 +26,9 @@ export default defineConfig({
|
|||||||
emptyOutDir: true,
|
emptyOutDir: true,
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
cssMinify: "lightningcss",
|
cssMinify: "lightningcss",
|
||||||
rollupOptions: { output: { manualChunks: { react: ["react","react-dom","react-router-dom"] } } }
|
rollupOptions: {
|
||||||
|
output: { manualChunks: { react: ["react", "react-dom", "react-router-dom"] } },
|
||||||
},
|
},
|
||||||
esbuild: { legalComments: "none" }
|
},
|
||||||
|
esbuild: { legalComments: "none" },
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user