Config Files
The configuration files in the /config directory have been designed with efficiency in mind, ensuring that redundant information is not duplicated across different parts of the application.
Directoryconfig/
- dashboard.ts
- metadata.ts
- price.ts
- site.tsx
- user.ts
Decription
dashboard.ts- Stores configurations for logged-in or protected routes, including dashboard menu items.metadata.ts- Stores metadata-related data such as SEO metadata and Open Graph tags.price.ts- Contains pricing-related configurations including trial duration and features.site.ts- Stores global site configurations for headers, footers, etc.user.ts- Example custom configuration file for storing user profile data.
price.ts
Two notable variables to note are:
| Variable | Description |
|---|---|
trialDuration | This variable is used for Stripe integration and determines the duration of trial periods. Change it to 0 if your application does not offer a trial period. |
features | A list of features to display on the billing page based on the user’s current plan. |
site.ts
Options to note:
| Variable | Description |
|---|---|
local | A boolean value indicating whether the link should be navigated locally (true) or as a new tab/window to an external link (false). |
disabled | A boolean value indicating whether the link is currently disabled or not ready. Set it to true to prevent users from clicking on it. |