Remove VercelAPL from SaleorApp (#103)
* Remove VercelAPL from SaleorApp * Fix name for workflow
This commit is contained in:
parent
40c5af93ab
commit
569a187890
4 changed files with 19 additions and 9 deletions
5
.changeset/purple-foxes-sing.md
Normal file
5
.changeset/purple-foxes-sing.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"saleor-app-invoices": minor
|
||||||
|
---
|
||||||
|
|
||||||
|
Remove VercelAPL from SaleorApp
|
2
.github/workflows/unit-tests.yml
vendored
2
.github/workflows/unit-tests.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Assign PR to creator
|
name: Run tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
|
@ -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();
|
||||||
|
|
||||||
|
|
15
turbo.json
15
turbo.json
|
@ -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": []
|
||||||
|
|
Loading…
Reference in a new issue