Skip to main content
Glama

MCP App Workers Template

by MCPJam
vite.config.ts821 B
import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; import tailwindcss from "@tailwindcss/vite"; import { viteSingleFile } from "vite-plugin-singlefile"; import path from "path"; const INPUT = process.env.INPUT; if (!INPUT) { throw new Error("INPUT environment variable is not set"); } const isDevelopment = process.env.NODE_ENV === "development"; export default defineConfig({ root: "web/", plugins: [react(), tailwindcss(), viteSingleFile()], resolve: { alias: { "@": path.resolve(__dirname, "./web"), }, }, build: { sourcemap: isDevelopment ? "inline" : undefined, cssMinify: !isDevelopment, minify: !isDevelopment, rollupOptions: { input: path.resolve(__dirname, "web", INPUT), }, outDir: `dist`, emptyOutDir: false, }, });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MCPJam/mcp-app-workers-template'

If you have feedback or need assistance with the MCP directory API, please join our Discord server