Configuration Overview
PreLaunch uses a central configuration file to manage application settings. This makes it easy to customize your application without diving into the code. The main configuration file isconfig.ts
in the root directory.
Core Configuration File
Theconfig.ts
file contains all the main settings for your application:
Main Configuration Sections
Basic Information
Customer Support (Crisp)
Payment Configuration (Paddle)
Email Configuration (Resend)
Theme Configuration
Authentication Configuration
Environment Variables
In addition to theconfig.ts
file, PreLaunch also uses environment variables for sensitive information. These should be set in your .env.local
file:
Creating a Custom Configuration Type
PreLaunch uses TypeScript for type safety. If you need to extend the configuration with new properties, you should update theConfigProps
type in types/config.ts
:
Best Practices
- Keep Sensitive Information in Environment Variables: Never put API keys, secrets, or passwords in
config.ts
- Use Strong NEXTAUTH_SECRET: This value should be a long, random string to secure authentication
- Review All Required Fields: Make sure all fields marked as “REQUIRED” are filled in
- Use Development/Production Environments: Use different values for development and production environments
Common Questions
How do I add a new pricing plan?
How do I add a new pricing plan?
Add a new object to the
plans
array in the paddle
section of config.ts
. Make sure it has a unique id
and a valid Paddle priceId
.How do I change the primary color of the application?
How do I change the primary color of the application?
Update the
main
color in the colors
section of config.ts
. Use a valid hex color code (e.g., “#ff5500”).How do I update SEO information?
How do I update SEO information?
Change the
appName
and appDescription
in config.ts
. These will be used for default SEO tags throughout the application.