Skip to main content

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 is config.ts in the root directory.

Core Configuration File

The config.ts file contains all the main settings for your application:

Main Configuration Sections

Basic Information

These settings are used throughout the application for SEO tags, page titles, and metadata.

Customer Support (Crisp)

PreLaunch integrates with Crisp for customer support chat. You can enable or disable it here.

Payment Configuration (Paddle)

Configure your pricing plans, features, and Paddle price IDs here. Each plan should have a unique ID and a valid Paddle price ID.

Email Configuration (Resend)

Configure your email sender information for transactional emails. PreLaunch uses Resend for email delivery.

Theme Configuration

Set your application theme and primary color here. PreLaunch uses DaisyUI for theming.

Authentication Configuration

Configure your authentication routes and redirect URLs.

Environment Variables

In addition to the config.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 the ConfigProps 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

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.
Update the main color in the colors section of config.ts. Use a valid hex color code (e.g., “#ff5500”).
Change the appName and appDescription in config.ts. These will be used for default SEO tags throughout the application.

Theme Customization

Learn how to customize the visual appearance of your application

Content Customization

Learn how to modify the text and content of your application