mirror of
https://github.com/stablyai/orca.git
synced 2026-09-29 16:02:50 +00:00
23 lines
454 B
JavaScript
23 lines
454 B
JavaScript
const app = require('./app.json')
|
|
|
|
module.exports = () => {
|
|
const config = app.expo
|
|
const routerRoot = process.env.ORCA_EXPO_ROUTER_ROOT
|
|
if (!routerRoot) {
|
|
return config
|
|
}
|
|
const webConfig = { ...config }
|
|
delete webConfig.android
|
|
delete webConfig.icon
|
|
delete webConfig.ios
|
|
delete webConfig.splash
|
|
return {
|
|
...webConfig,
|
|
platforms: ['web'],
|
|
extra: {
|
|
...config.extra,
|
|
router: { root: routerRoot }
|
|
}
|
|
}
|
|
}
|