Split the job tracker out of web_server into its own app
The applications tracker, leads inbox, email pipeline and capture userscript move here from web_server's backend, Python service and Vue app, as one Go binary that serves its own Vue SPA under /jobs/. - The Go services, resolvers and tests move over almost unchanged. - The three Claude calls are ported from Python to Go (internal/claude), with the same prompts, per-model request shaping and error messages. - There is no login: internal/auth asks the site backend's /auth/validate-admin with the visitor's cookies, and relays refreshed cookies back. - A Settings page replaces the admin-panel capture token card and adds the Microsoft sign-in link and a manual email sync. - The userscript is 2.0.0, at /jobs/, and migrates a saved API base. - Dockerfile, a standalone compose with Postgres, Makefile, and a Gitea CI workflow that tests and publishes the image. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import { fileURLToPath, URL } from "node:url";
|
||||
|
||||
import { defineConfig } from "vite";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import vue from "@vitejs/plugin-vue";
|
||||
|
||||
// The app is served under /jobs/ (BASE_PATH on the server), so every asset URL
|
||||
// and the router's history base carry it. Changing one means changing both.
|
||||
//
|
||||
// `npm run dev` proxies the API to the Go server. VITE_PROXY_JOBS is the
|
||||
// tracker (default localhost:8080, the standalone docker-compose), and
|
||||
// VITE_PROXY_SITE is the main site's backend, which the site's login and
|
||||
// refresh routes under /api live on — only needed when the tracker runs with
|
||||
// AUTH_MODE=forward.
|
||||
export default defineConfig({
|
||||
base: "/jobs/",
|
||||
plugins: [vue(), tailwindcss()],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
host: "0.0.0.0",
|
||||
proxy: {
|
||||
"/jobs/api": process.env.VITE_PROXY_JOBS || "http://localhost:8080",
|
||||
"/api": process.env.VITE_PROXY_SITE || "http://localhost:8081",
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user