Skip to main content
Glama
tailwind.config.ts781 B
import { dirname, relative } from 'node:path'; import { fileURLToPath } from 'node:url'; const __filename = fileURLToPath(import.meta.url); // get the resolved path to the file const __dirname = dirname(__filename); // get the name of the directory const getTailwindConfig = () => { const originAbsolutePath = process.cwd(); const localePath = __dirname; let relativePath = relative(originAbsolutePath, localePath); if (!relativePath) { relativePath = '.'; } const config = { content: [ `${relativePath}/components/**/*.{ts,tsx,jsx,mjx,js,cjs,cjx,mjs,mjx,svg}`, ], }; return config; }; const tailwindConfig = getTailwindConfig(); const tailwindPresetConfig = tailwindConfig; export { tailwindPresetConfig }; export default tailwindConfig;

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/aymericzip/intlayer'

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