fix nixpacks

This commit is contained in:
yoan
2024-08-23 14:24:10 +08:00
parent 10bf69181f
commit 76c445a51c
5 changed files with 53 additions and 48 deletions

View File

File diff suppressed because one or more lines are too long

2
ui/dist/index.html vendored
View File

@@ -5,7 +5,7 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Certimate - Your Trusted SSL Automation Partner</title>
<script type="module" crossorigin src="/assets/index-oeLp_5KR.js"></script>
<script type="module" crossorigin src="/assets/index-BaOyaxPQ.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-6bfokHP3.css">
</head>
<body class="bg-background">

View File

@@ -4,6 +4,6 @@ console.log(apiDomain);
let pb: PocketBase;
export const getPb = () => {
if (pb) return pb;
pb = new PocketBase(apiDomain ? apiDomain : "http://127.0.0.1:8090");
pb = new PocketBase("/");
return pb;
};

View File

@@ -9,4 +9,9 @@ export default defineConfig({
"@": path.resolve(__dirname, "./src"),
},
},
server: {
proxy: {
"/api": "http://127.0.0.1:8090",
},
},
});