File location
Placelinkapp.config.ts in your project root or .config/linkapp.config.ts. The CLI loads either path for linkapp dev, linkapp build, and linkapp deploy.
Shape at a glance
linkapp.config.ts
snake_case to match the Linktree API; element properties use camelCase.
Key points
- LinkApp ID: derived from
manifest.nameon first deploy and remains fixed. Choose carefully before shipping. - Settings → props: every element in
settings.elementsbecomes a prop in your layouts. Type them withAppProps<YourSettings>:app/expanded.tsx - Preview props: values under
preview_propsare injected duringlinkapp devso you can see realistic data without publishing. - URL match rules: optional. Provide
hostnamesandpatternsso Linktree can suggest your LinkApp when users paste matching URLs.
Validation
Configuration is validated duringlinkapp build and linkapp deploy. Fix reported errors (missing required fields, invalid patterns, etc.) before retrying.