Interface: AppConfig
Configuration schema for app.config.ts, the top-level config file of a
Sparkling application.
app.config.ts is a superset of the Lynx build config. It wraps the
standard Rspeedy / Lynx config (the same object you would export from a
lynx.config.ts) and adds Sparkling-specific fields such as platform
identifiers, asset paths, and native plugin settings.
Relationship to lynx.config.ts:
At build time the Sparkling CLI extracts the lynxConfig property and
passes it to Rspeedy, so you never need a separate lynx.config.ts when
using app.config.ts.
Example
Properties
appIcon?
Path to the app icon image, relative to the project root.
appName?
Display name of the application.
Used by the Sparkling CLI when scaffolding or displaying the app.
lynxConfig
The Rspeedy / Lynx build configuration — the same object returned by
defineConfig() from @lynx-js/rspeedy.
This is the only required field. The Sparkling CLI extracts it at
build time and passes it to Rspeedy, so you do not need a separate
lynx.config.ts file.
Remarks
Configure build entries, output settings, and Rspeedy plugins here. See the Rspeedy documentation for the full set of options.
paths?
Paths where built bundles are copied into the native projects.
After sparkling build, the CLI copies the output bundles to these
directories so the native apps can load them as local assets.
androidAssets?
Path to the Android assets directory relative to the project root.
iosAssets?
Path to the iOS assets directory relative to the project root.
Default Value
{ androidAssets: 'android/app/src/main/assets', iosAssets: 'ios/LynxResources/Assets' }
platform?
Platform-specific identifiers for Android and iOS builds.
plugin?
Native plugin configurations.
Each entry is a tuple of [pluginName, pluginOptions]. The Sparkling
CLI and native SDKs read these to configure native-side features.
Example
router?
Static route entry mapping.
Maps named routes to their bundle paths. This is available for metadata
purposes; at runtime, navigation is performed via the navigate()
function from sparkling-navigation.

