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.
The config.ts file contains all the main settings for your application:
// config.tsimport { ConfigProps } from "./types/config";const config = { // REQUIRED appName: "PreLaunch", // REQUIRED: a short description of your app for SEO tags appDescription: "Focused on product validation phase, helping you quickly deploy a professional website, validate product ideas and collect potential user feedback.", // REQUIRED (no https://, not trailing slash at the end, just the naked domain) domainName: "prelaunch.online", // Other configuration sections...} as ConfigProps;export default config;
crisp: { // Crisp website ID. Set to empty string if you don't use Crisp id: "YOUR_CRISP_ID", // Hide Crisp by default, except on route "/". Crisp is toggled with <ButtonSupport/> onlyShowOnRoutes: ["/"],},
PreLaunch integrates with Crisp for customer support chat. You can enable or disable it here.
resend: { // REQUIRED — Email 'From' field to be used when sending magic login links fromNoReply: `PreLaunch <noreply@prelaunch.online>`, // REQUIRED — Email 'From' field to be used when sending other emails, like abandoned carts, updates etc.. fromAdmin: `Team at PreLaunch <team@prelaunch.online>`, // Support email shown to customer. Leave empty if not needed supportEmail: "support@prelaunch.online",},
Configure your email sender information for transactional emails. PreLaunch uses Resend for email delivery.
colors: { // The DaisyUI theme to use. Leave blank for default (light & dark mode) theme: "", // This color will be reflected on the whole app outside of the document main: "#3b82f6",},
Set your application theme and primary color here. PreLaunch uses DaisyUI for theming.
auth: { // The path to log in users. Used to protect private routes loginUrl: "/api/auth/signin", // The path to redirect users after successful login callbackUrl: "/",},
Configure your authentication routes and redirect URLs.
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:
// types/config.tsexport interface ConfigProps { appName: string; appDescription: string; domainName: string; // Add your new properties here myCustomConfig?: { setting1: string; setting2: number; }; // Other existing properties...}