Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

[SERVICE-418] Have service deploy with empty app directory #31

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/provider/AppDirectory.ts
Expand Up @@ -42,6 +42,10 @@ export class AppDirectory {
}

private async request(): Promise<Application[]> {
// If using the demo app directory in production, return an empty array.
if (process.env.NODE_ENV === 'production' && AppDirectory.URL === 'http://localhost:3923/provider/app-directory.json') {
tomrobertsOF marked this conversation as resolved.
Show resolved Hide resolved
return [];
}
return new Promise((resolve: (value: Application[]) => void, reject: (reason: Error) => void): void => {
const xhr: XMLHttpRequest = new XMLHttpRequest();
let response: Application[];
Expand Down