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 11/* 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' ;
28
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 = ( {
1410 docs : {
1511 versionPersistence : 'localStorage' ,
1612 sidebar : {
@@ -281,7 +277,7 @@ const themeConfig = {
281277 async : true ,
282278 defer : true ,
283279 } ,
284- } ;
280+ } ) ;
285281
286282const plugins = [
287283 [
@@ -298,9 +294,7 @@ const plugins = [
298294 return {
299295 resolveLoader : {
300296 alias : {
301- 'roa-loader' : require . resolve (
302- `${ __dirname } /roa-loader/` ,
303- ) ,
297+ 'roa-loader' : require . resolve ( `${ __dirname } /roa-loader/` ) ,
304298 } ,
305299 } ,
306300 } ;
Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ module.exports = {
249249 module : {
250250 rules : [
251251 {
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,
253253 type : 'asset/source' ,
254254 } ,
255255 ] ,
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ if (state.isInitialized) {
5959 state . isInitialized = true ;
6060}
6161
62- const parallelRunPromises = state . parallelRunIds . map ( async ( runId ) => {
62+ const parallelRunPromises = state . parallelRunIds . map ( ( runId ) => {
6363 const runClient = apifyClient . run ( runId ) ;
6464 return runClient . waitForFinish ( ) ;
6565} ) ;
You can’t perform that action at this time.
0 commit comments