[fr] Configuration
[fr] The setup wizard (`npm run setup`) generates `prompts.config.ts` automatically. You can also manually edit it:
```typescript
// Set to true to use your own branding instead of prompts.chat branding
const useCloneBranding = true;
export default defineConfig({
// Branding
branding: {
name: "Your Prompt Library",
logo: "/your-logo.svg",
logoDark: "/your-logo-dark.svg",
description: "Your custom description",
},
// Theme
theme: {
radius: "sm", // "none" | "sm" | "md" | "lg"
variant: "default", // "flat" | "default" | "brutal"
colors: {
primary: "#6366f1",
},
},
// Authentication
auth: {
provider: "github", // "credentials" | "github" | "google" | "azure"
allowRegistration: true,
},
// Features
features: {
privatePrompts: true,
changeRequests: true,
categories: true,
tags: true,
aiSearch: false, // Requires OPENAI_API_KEY
},
// Homepage
homepage: {
useCloneBranding, // Use your branding on homepage
achievements: {
enabled: !useCloneBranding, // Hide prompts.chat achievements
},
sponsors: {
enabled: !useCloneBranding, // Hide prompts.chat sponsors
},
},
// Internationalization
i18n: {
locales: ["en", "es", "ja", "tr", "zh"],
defaultLocale: "en",
},
});
```
Source: https://github.com/f/awesome-chatgpt-prompts/blob/main/SELF-HOSTING.md
Configuration