Launch
How to customize the projects launch
Launch is the core of the directory app, and you can set different launch policies for different types of directory apps.
export const LAUNCH_LIMITS = {
FREE_DAILY_LIMIT: 5, // Maximum number of free launches per day
PREMIUM_DAILY_LIMIT: 10, // Maximum number of premium launches per day
PREMIUM_PLUS_DAILY_LIMIT: 3, // Maximum number of premium plus launches per day
TOTAL_DAILY_LIMIT: 38, // Maximum number of total launches per day
ADMIN_FREE_DAILY_LIMIT: 20, // Maximum number of launches per day for admins, should not more than (TOTAL_DAILY_LIMIT - FREE_DAILY_LIMIT - PREMIUM_DAILY_LIMIT - PREMIUM_PLUS_DAILY_LIMIT)
} as const
export const USER_DAILY_LAUNCH_LIMIT = 1
export const PROJECT_LIMITS_VARIABLES = {
TODAY_LIMIT: 20, // default
YESTERDAY_LIMIT: 5, // default
MONTH_LIMIT: 5, // default
VIEW_ALL_PAGE_TODAY_YESTERDAY_LIMIT: 20, // Maximum number of launches per day
VIEW_ALL_PAGE_MONTH_LIMIT: 20,
NUMBER_OF_PROJECTS_PER_PAGE: 12, // Number of projects per page
} as const
export const LAUNCH_SETTINGS = {
PREMIUM_PRICE: 9, // USD
PREMIUM_PLUS_PRICE: 12.5, // USD
ARTICLE_PRICE: 99, // USD
MIN_DAYS_AHEAD: 1, // Minimum days ahead for scheduling (starting from tomorrow)
MAX_DAYS_AHEAD: 90, // Maximum days ahead for scheduling (3 months)
PREMIUM_MIN_DAYS_AHEAD: 1, // Premium users can schedule sooner
PREMIUM_MAX_DAYS_AHEAD: 30, // Premium users have a shorter window
PREMIUM_PLUS_MIN_DAYS_AHEAD: 1, // Premium Plus users can schedule even sooner
PREMIUM_PLUS_MAX_DAYS_AHEAD: 14, // Premium Plus users have the shortest window
DAYS_PER_PAGE: 7, // Number of days to display per page
LAUNCH_HOUR_UTC: 8, // All launches happen at 8 AM UTC
} as const
export const LAUNCH_TYPES = {
FREE: "free",
PREMIUM: "premium",
PREMIUM_PLUS: "premium_plus",
SEO_ARTICLE: "seo_article",
} as const
// Enabled paid launch types , free launch is required
export const ENABLED_PAID_LAUNCH_TYPES = [
LAUNCH_TYPES.PREMIUM,
LAUNCH_TYPES.PREMIUM_PLUS,
LAUNCH_TYPES.SEO_ARTICLE,
] as const
All these are customizable in the lib/constants.ts
file.