Skip to content

Commit

Permalink
add file apl path
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofzuraw committed Aug 16, 2024
1 parent 6b9d7e7 commit 35e8a42
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/saleor-app.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SaleorApp } from "@saleor/app-sdk/saleor-app";
import { APL, FileAPL, SaleorCloudAPL, UpstashAPL } from "@saleor/app-sdk/APL";
import { SaleorApp } from "@saleor/app-sdk/saleor-app";
import { invariant } from "./lib/invariant";

/**
Expand All @@ -25,7 +25,9 @@ switch (process.env.APL) {
apl = new UpstashAPL();
break;
default:
apl = new FileAPL();
apl = new FileAPL({
fileName: process.env.FILE_APL_PATH,
});
}

export const saleorApp = new SaleorApp({
Expand Down

0 comments on commit 35e8a42

Please sign in to comment.