import { defineConfig } from "vite"; export default defineConfig({ // Mounted under tera.lumbridgecorp.com in production; the trailing // slash matters, since every asset URL is resolved against it. base: process.env.TERA_BASE ?? "/", build: { outDir: "dist", target: "es2022", // Two entries. `login.html` used to sit in `public/`, which Vite copies // verbatim — so `import.meta.env` was never substituted there and the page // could not be told which identity provider to sign in against. It is a real // entry now; the built URL (`/login.html`) is unchanged. rollupOptions: { input: { index: "index.html", login: "login.html" } }, }, });