Optional
paths?: { Optional
anchor?: stringOptional
dist?: stringOptional
entry?: stringOptional
rsc?: stringOptional
src?: stringOptional
ssr?: stringOptional
serve?: { Optional
port?: numberOptional
paths?: { Optional
anchor?: stringOptional
dist?: stringOptional
entry?: stringOptional
rsc?: stringOptional
src?: stringOptional
ssr?: stringOptional
serve?: { Optional
port?: numberThe merged config object.
Optional
paths?: { Optional
anchor?: stringOptional
dist?: stringOptional
entry?: stringOptional
rsc?: stringOptional
src?: stringOptional
ssr?: stringOptional
serve?: { Optional
port?: numbermergeSeiaConfig({
paths: {
src: '.',
}
}, {
paths: {
entry: 'Page.tsx',
}
})
// will be evaluated to:
// {
// paths: {
// src: '.',
// entry: 'Page.tsx',
// }
// }
Smartly merge two SeiaConfigs.
This function will merge two configs recursively, leaving the unspecified fields as is.
This function is useful when you want to change only a few fields from the base config.
The result will be a new object, and the original objects will not be mutated.
This function does not perform validation. If you want to validate and produce a fully resolved config, use resolveSeiaConfig instead.