fix: respect options
This commit is contained in:
parent
86d088a98e
commit
87e9836cca
|
@ -10,9 +10,9 @@ export function withWeb(task, options) {
|
||||||
opts: {
|
opts: {
|
||||||
...optionsWithTask.opts,
|
...optionsWithTask.opts,
|
||||||
env: {
|
env: {
|
||||||
...optionsWithTask.opts?.env,
|
|
||||||
FLECKS_ENV__flecks_web__port: '0',
|
FLECKS_ENV__flecks_web__port: '0',
|
||||||
FLECKS_ENV__flecks_web__devPort: '0',
|
FLECKS_ENV__flecks_web__devPort: '0',
|
||||||
|
...optionsWithTask.opts?.env,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -34,7 +34,8 @@ export function withWeb(task, options) {
|
||||||
socket,
|
socket,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const response = await connectPage(page, `http://${payload}`, optionsWithTask);
|
const {pagePath = '/'} = options;
|
||||||
|
const response = await connectPage(page, `http://${payload}${pagePath}`, optionsWithTask);
|
||||||
let taskError;
|
let taskError;
|
||||||
try {
|
try {
|
||||||
await task({
|
await task({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user