File tree Expand file tree Collapse file tree 4 files changed +11
-49
lines changed
examples/ts-parallel-scraping/orchestrator/src Expand file tree Collapse file tree 4 files changed +11
-49
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
/* eslint-disable global-require */
2
+ // eslint-disable-next-line no-nested-ternary
3
+ const absoluteUrl = process . env . LOCALHOST
4
+ ? 'http://localhost:3000'
5
+ : process . env . DEV
6
+ ? 'http://docs.apify.loc'
7
+ : 'https://docs.apify.com' ;
2
8
3
- let absoluteUrl = 'https://docs.apify.com' ;
4
-
5
- if ( process . env . LOCALHOST ) {
6
- absoluteUrl = 'http://localhost:3000' ;
7
- } else if ( process . env . DEV ) {
8
- absoluteUrl = 'http://docs.apify.loc' ;
9
- } else if ( process . env . APIFY_DOCS_ABSOLUTE_URL ) {
10
- absoluteUrl = process . env . APIFY_DOCS_ABSOLUTE_URL ;
11
- }
12
-
13
- const themeConfig = {
9
+ const themeConfig = ( {
14
10
docs : {
15
11
versionPersistence : 'localStorage' ,
16
12
sidebar : {
@@ -281,7 +277,7 @@ const themeConfig = {
281
277
async : true ,
282
278
defer : true ,
283
279
} ,
284
- } ;
280
+ } ) ;
285
281
286
282
const plugins = [
287
283
[
@@ -298,9 +294,7 @@ const plugins = [
298
294
return {
299
295
resolveLoader : {
300
296
alias : {
301
- 'roa-loader' : require . resolve (
302
- `${ __dirname } /roa-loader/` ,
303
- ) ,
297
+ 'roa-loader' : require . resolve ( `${ __dirname } /roa-loader/` ) ,
304
298
} ,
305
299
} ,
306
300
} ;
Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ module.exports = {
249
249
module : {
250
250
rules : [
251
251
{
252
- test : / e x a m p l e s \/ / i,
252
+ test : / a p i f y - d o c s \/ e x a m p l e s \/ / i,
253
253
type : 'asset/source' ,
254
254
} ,
255
255
] ,
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ if (state.isInitialized) {
59
59
state . isInitialized = true ;
60
60
}
61
61
62
- const parallelRunPromises = state . parallelRunIds . map ( async ( runId ) => {
62
+ const parallelRunPromises = state . parallelRunIds . map ( ( runId ) => {
63
63
const runClient = apifyClient . run ( runId ) ;
64
64
return runClient . waitForFinish ( ) ;
65
65
} ) ;
You can’t perform that action at this time.
0 commit comments