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()
|
||||
gr.Use(authUser)
|
||||
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,
|
||||
"--bind", host,
|
||||
"--listen", port,
|
||||
"--prefix", "/db-studio",
|
||||
"--skip-open",
|
||||
}
|
||||
if readonly {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import path from "path"
|
||||
import tailwindcss from "@tailwindcss/vite"
|
||||
import { defineConfig } from "vite"
|
||||
import react from "@vitejs/plugin-react"
|
||||
import { defineConfig } from "vite"
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
@@ -9,7 +9,7 @@ export default defineConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
}
|
||||
},
|
||||
},
|
||||
server: {
|
||||
port: 5173,
|
||||
@@ -18,7 +18,7 @@ export default defineConfig({
|
||||
"/swagger": "http://localhost:8080",
|
||||
"/db-studio": "http://localhost:8080",
|
||||
},
|
||||
allowedHosts: ['.getexposed.io']
|
||||
allowedHosts: [".getexposed.io"],
|
||||
},
|
||||
build: {
|
||||
chunkSizeWarningLimit: 1000,
|
||||
@@ -26,7 +26,9 @@ export default defineConfig({
|
||||
emptyOutDir: true,
|
||||
sourcemap: true,
|
||||
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