Skip to content

Commit 80a6953

Browse files
committed
chore: disable aws demo on HEROKU
1 parent 67bd51d commit 80a6953

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

index.ts

+7-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@ const httpServer = http.createServer(app);
1919
// - links and example queries to index page
2020
const exampleNames = getExampleNames();
2121
for (const name of exampleNames) {
22-
addExample(
23-
require(resolveExamplePath(name)).default,
24-
name
25-
);
22+
if (process.env.DISABLE_AWS_EXAMPLE && name === 'aws') {
23+
// skip AWS demo, because it uses quite lot memory
24+
// and heroku start up fails
25+
continue;
26+
}
27+
28+
addExample(require(resolveExamplePath(name)).default, name);
2629
}
2730

2831
// $FlowFixMe

0 commit comments

Comments
 (0)