Remove VercelAPL from SaleorApp (#103)

* Remove VercelAPL from SaleorApp

* Fix name for workflow
This commit is contained in:
Lukasz Ostrowski 2023-02-07 20:54:03 +01:00 committed by GitHub
parent 40c5af93ab
commit 569a187890
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 9 deletions

View file

@ -0,0 +1,5 @@
---
"saleor-app-invoices": minor
---
Remove VercelAPL from SaleorApp

View file

@ -1,4 +1,4 @@
name: Assign PR to creator name: Run tests
on: on:
pull_request: pull_request:

View file

@ -1,4 +1,4 @@
import { APL, FileAPL, SaleorCloudAPL, UpstashAPL, VercelAPL } from "@saleor/app-sdk/APL"; import { APL, FileAPL, SaleorCloudAPL, UpstashAPL } from "@saleor/app-sdk/APL";
import { SaleorApp } from "@saleor/app-sdk/saleor-app"; import { SaleorApp } from "@saleor/app-sdk/saleor-app";
const aplType = process.env.APL ?? "file"; const aplType = process.env.APL ?? "file";
@ -6,10 +6,6 @@ const aplType = process.env.APL ?? "file";
let apl: APL; let apl: APL;
switch (aplType) { switch (aplType) {
case "vercel":
apl = new VercelAPL();
break;
case "upstash": case "upstash":
apl = new UpstashAPL(); apl = new UpstashAPL();

View file

@ -7,10 +7,19 @@
"outputs": ["dist/**", ".next/**"] "outputs": ["dist/**", ".next/**"]
}, },
"build#saleor-app-data-importer": { "build#saleor-app-data-importer": {
"env": ["NEXT_PUBLIC_NUVO_LICENSE_KEY"] "env": ["APL", "NEXT_PUBLIC_NUVO_LICENSE_KEY"]
}, },
"build#saleor-app-invoicesr": { "build#saleor-app-invoices": {
"env": ["APP_DEBUG", "NODE_ENV", "SECRET_KEY", "TEMP_PDF_STORAGE_DIR", "PORT","VERCEL_URL", "ALLOWED_DOMAIN_PATTERN"] "env": [
"APL",
"APP_DEBUG",
"NODE_ENV",
"SECRET_KEY",
"TEMP_PDF_STORAGE_DIR",
"PORT",
"VERCEL_URL",
"ALLOWED_DOMAIN_PATTERN"
]
}, },
"lint": { "lint": {
"outputs": [] "outputs": []