chore: support 'anything' through nebula serve (#1626)

This commit is contained in:
Quan Ho
2024-10-04 17:05:56 +02:00
committed by GitHub
parent 7e3e72501d
commit 10d9fb25fe
2 changed files with 3 additions and 1 deletions

View File

@@ -158,6 +158,7 @@ module.exports = async ({
port: entryWatcher && entryWatcher.port,
},
flags: serveConfig.flags,
anything: serveConfig.anything,
themes: themes.map((theme) => theme.id),
types: serveConfig.types,
keyboardNavigation: serveConfig.keyboardNavigation,

View File

@@ -11,7 +11,7 @@ const getDefaultGenericObject = ({ type }) => ({
},
});
const getServeOptions = ({ themes = [], supernova = {}, flags }) => {
const getServeOptions = ({ themes = [], supernova = {}, flags, anything }) => {
const options = {
instanceConfig: {
themes: themes.map((t) => ({
@@ -22,6 +22,7 @@ const getServeOptions = ({ themes = [], supernova = {}, flags }) => {
constraints: {},
},
flags,
anything,
},
};
if (supernova.name) {