Documentation

General Configuration

Define the app-wide config shared by Web and Mobile.

Location: config/index.ts

Define the core app settings once and consume them across Web and Mobile.

export const config: Config = {
  name: "Your App Name", // CHANGE
  description: "A Full-stack starter kit for building web and mobile app", // CHANGE
  author: "Your Name", // CHANGE
  keywords: ["typescript", "react native", "nextjs"], // OPTIONAL
  url: "https://codebasehub.pro", // CHANGE
  mail: {
    fromAddress: "hi@codebasehub.pro", // CHANGE
  },
  legal: {
    termsOfServiceUrl: "https://codebasehub.pro/terms", // CHANGE
    privacyPolicyUrl: "https://codebasehub.pro/privacy", // CHANGE
  },
  i18n: {
    defaultLocale: "en", // CHANGE if needed
    locales: ["en", "tr", "ar"], // CHANGE supported locales
  },
  platforms: {
    web: {
      auth: {
        signupEnabled: true,
        socialLoginEnabled: true,
        googleLoginEnabled: true,
        appleLoginEnabled: false,
      },
      ui: {
        defaultTheme: "system",
      },
    },
    native: {
      auth: {
        signupEnabled: true,
        socialLoginEnabled: true,
        googleLoginEnabled: true,
        appleLoginEnabled: true,
      },
      ui: {
        defaultTheme: "system",
      },
      hasOnboarding: true,
      hasAppsFlyer: true,
      hasOneSignal: true,
      hasPostHog: true,
    },
  },
};
  • Required changes:

    • name, description, author, url, mail.fromAddress
    • legal.termsOfServiceUrl, legal.privacyPolicyUrl
    • i18n.defaultLocale, i18n.locales (as needed)
    • platform flags and defaults per your product
  • Usage tips:

    • Import from config where needed (Web, Server, Native)
    • Keep secrets out of this file; use environment variables for keys.

If you build the Mobile app for iOS, also update iOS localizations in apps/native/app.json to match your i18n.locales:

{
  "expo": {
    "ios": {
      "infoPlist": {
        "CFBundleLocalizations": ["en", "tr", "ar"], // keep in sync with config.i18n.locales
        "CFBundleDevelopmentRegion": "en"
      }
    }
  }
}

On this page

No Headings