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

@ -12,16 +12,16 @@ dependsOn = [
'install',
'setup',
]
cmds = ['go build -o out','npm --prefix=./ui run build']
cmds = ['go build -o out']
cacheDirectories = ['/root/.cache/go-build']
[phases.install]
dependsOn = ['setup']
cmds = ['go mod download','npm --prefix=./ui ci']
cmds = ['go mod download']
cacheDirectories = ['/root/.cache/go-build']
[phases.setup]
nixPkgs = ['...', 'go', 'nodejs_22']
nixPkgs = ['go']
nixOverlays = []
nixpkgsArchive = '1f13eabcd6f5b00fe9de9575ac52c66a0e887ce6'

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",
},
},
});