Files
Docwell/Server/admin/vite.config.ts
T
tajniak81andClaude Opus 5.5 34660c6b46 Add workspace groups with space grants
Workspace admins create groups of members, and space admins grant a role
to a whole group. A member's space role is now the highest of their own
grant and their groups' grants. Leaving a workspace drops its group
memberships, and deleting a group removes its space grants (they are not
a real relation, so PocketBase cannot cascade them).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 16:39:21 +01:00

28 lines
741 B
TypeScript

// SPDX-License-Identifier: AGPL-3.0-or-later
import tailwindcss from "@tailwindcss/vite";
import vue from "@vitejs/plugin-vue";
import { defineConfig } from "vite";
// DOCWELL_DEV_API points the dev proxy at another docwell-server.
// The config runs in Node, but this tsconfig has no Node types.
declare const process: { env: Record<string, string | undefined> };
const api = process.env.DOCWELL_DEV_API ?? "http://localhost:8080";
export default defineConfig({
// Served by docwell-server under /admin/.
base: "/admin/",
plugins: [vue(), tailwindcss()],
build: {
outDir: "../internal/admin/dist",
emptyOutDir: true,
},
server: {
port: 5174,
proxy: {
"/api": api,
"/readyz": api,
},
},
});