Compare commits
1 commit
main
...
dependabot
Author | SHA1 | Date | |
---|---|---|---|
![]() |
590e08c12e |
13 changed files with 436 additions and 369 deletions
|
@ -1,8 +0,0 @@
|
|||
#changelog
|
||||
---
|
||||
"apps": minor
|
||||
---
|
||||
### Added
|
||||
|
||||
- `apps/emails-and-messages/.env.template`: Described the new environment variable and how it works
|
||||
- `apps/emails-and-messages/src/saleor-app.ts`: Added case "redis" for switch(AplType), which takes advantage of the [RedisAPL PR](https://github.com/saleor/app-sdk/pull/287) I submitted
|
|
@ -21,10 +21,10 @@
|
|||
"@saleor/react-hook-form-macaw": "workspace:*",
|
||||
"@sentry/nextjs": "7.67.0",
|
||||
"@tanstack/react-query": "^4.29.19",
|
||||
"@trpc/client": "10.38.1",
|
||||
"@trpc/next": "10.38.1",
|
||||
"@trpc/react-query": "10.38.1",
|
||||
"@trpc/server": "10.38.1",
|
||||
"@trpc/client": "10.38.5",
|
||||
"@trpc/next": "10.38.5",
|
||||
"@trpc/react-query": "10.38.5",
|
||||
"@trpc/server": "10.38.5",
|
||||
"@urql/exchange-auth": "^2.1.4",
|
||||
"@vitejs/plugin-react": "4.0.4",
|
||||
"contentful-management": "10.38.3",
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
"@saleor/macaw-ui": "0.8.0-pre.127",
|
||||
"@sentry/nextjs": "7.67.0",
|
||||
"@tanstack/react-query": "4.29.19",
|
||||
"@trpc/client": "10.38.1",
|
||||
"@trpc/next": "10.38.1",
|
||||
"@trpc/react-query": "10.38.1",
|
||||
"@trpc/server": "10.38.1",
|
||||
"@trpc/client": "10.38.5",
|
||||
"@trpc/next": "10.38.5",
|
||||
"@trpc/react-query": "10.38.5",
|
||||
"@trpc/server": "10.38.5",
|
||||
"@urql/exchange-auth": "^2.1.4",
|
||||
"@vitejs/plugin-react": "4.0.4",
|
||||
"clsx": "^1.2.1",
|
||||
|
|
|
@ -7,12 +7,6 @@ APL=
|
|||
REST_APL_ENDPOINT=
|
||||
REST_APL_TOKEN=
|
||||
|
||||
# To use Redis as an APL store, set APP_API_BASE_URL and REDIS_URL.
|
||||
# URL is in format redis[s]://[[username][:password]@][host][:port][/db-number],
|
||||
# so for example redis://alice:foobared@awesome.redis.server:6380
|
||||
# For saleor-platform, thats: `redis://redis:6379/1`
|
||||
REDIS_URL=
|
||||
|
||||
APP_LOG_LEVEL=info
|
||||
|
||||
# Local development variables. When developped locally with Saleor inside docker, these can be set to:
|
||||
|
@ -21,5 +15,4 @@ APP_LOG_LEVEL=info
|
|||
# If developped with tunnels, set this empty, it will fallback to default Next's localhost:3000
|
||||
# https://docs.saleor.io/docs/3.x/developer/extending/apps/local-app-development
|
||||
APP_IFRAME_BASE_URL=
|
||||
APP_API_BASE_URL=
|
||||
|
||||
APP_API_BASE_URL=
|
|
@ -23,10 +23,10 @@
|
|||
"@sendgrid/mail": "^7.7.0",
|
||||
"@sentry/nextjs": "7.67.0",
|
||||
"@tanstack/react-query": "4.29.19",
|
||||
"@trpc/client": "10.38.1",
|
||||
"@trpc/next": "10.38.1",
|
||||
"@trpc/react-query": "10.38.1",
|
||||
"@trpc/server": "10.38.1",
|
||||
"@trpc/client": "10.38.5",
|
||||
"@trpc/next": "10.38.5",
|
||||
"@trpc/react-query": "10.38.5",
|
||||
"@trpc/server": "10.38.5",
|
||||
"@urql/exchange-auth": "^2.1.4",
|
||||
"@vitejs/plugin-react": "4.0.4",
|
||||
"dotenv": "^16.3.1",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { APL, FileAPL, RedisAPL, SaleorCloudAPL, UpstashAPL } from "@saleor/app-sdk/APL";
|
||||
import { APL, FileAPL, SaleorCloudAPL, UpstashAPL } from "@saleor/app-sdk/APL";
|
||||
import { SaleorApp } from "@saleor/app-sdk/saleor-app";
|
||||
|
||||
const aplType = process.env.APL ?? "file";
|
||||
|
@ -6,12 +6,6 @@ const aplType = process.env.APL ?? "file";
|
|||
export let apl: APL;
|
||||
|
||||
switch (aplType) {
|
||||
case "redis": {
|
||||
if (!process.env.REDIS_URL) throw new Error("Missing redis url");
|
||||
if (!process.env.APP_API_BASE_URL)
|
||||
throw new Error("Redis relies on APP_API_BASE_URL to store keys, please set env variable");
|
||||
apl = new RedisAPL(new URL(process.env.REDIS_URL), process.env.APP_API_BASE_URL);
|
||||
}
|
||||
case "upstash":
|
||||
apl = new UpstashAPL();
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
{
|
||||
"extends": [
|
||||
"//"
|
||||
],
|
||||
"extends": ["//"],
|
||||
"$schema": "https://turbo.build/schema.json",
|
||||
"pipeline": {
|
||||
"build": {
|
||||
|
@ -23,8 +21,7 @@
|
|||
"NEXT_PUBLIC_SENTRY_DSN",
|
||||
"SENTRY_ENVIRONMENT",
|
||||
"APP_IFRAME_BASE_URL",
|
||||
"APP_API_BASE_URL",
|
||||
"REDIS_URL"
|
||||
"APP_API_BASE_URL"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,10 +20,10 @@
|
|||
"@saleor/trpc": "workspace:*",
|
||||
"@sentry/nextjs": "7.67.0",
|
||||
"@tanstack/react-query": "4.29.19",
|
||||
"@trpc/client": "10.38.1",
|
||||
"@trpc/next": "10.38.1",
|
||||
"@trpc/react-query": "10.38.1",
|
||||
"@trpc/server": "10.38.1",
|
||||
"@trpc/client": "10.38.5",
|
||||
"@trpc/next": "10.38.5",
|
||||
"@trpc/react-query": "10.38.5",
|
||||
"@trpc/server": "10.38.5",
|
||||
"@urql/exchange-auth": "^2.1.4",
|
||||
"@web-std/file": "^3.0.2",
|
||||
"eslint": "8.46.0",
|
||||
|
|
|
@ -22,10 +22,10 @@
|
|||
"@saleor/webhook-utils": "workspace:*",
|
||||
"@sentry/nextjs": "7.67.0",
|
||||
"@tanstack/react-query": "4.29.19",
|
||||
"@trpc/client": "10.38.1",
|
||||
"@trpc/next": "10.38.1",
|
||||
"@trpc/react-query": "10.38.1",
|
||||
"@trpc/server": "10.38.1",
|
||||
"@trpc/client": "10.38.5",
|
||||
"@trpc/next": "10.38.5",
|
||||
"@trpc/react-query": "10.38.5",
|
||||
"@trpc/server": "10.38.5",
|
||||
"@urql/exchange-auth": "^2.1.4",
|
||||
"@vitejs/plugin-react": "4.0.4",
|
||||
"dotenv": "^16.3.1",
|
||||
|
|
|
@ -21,10 +21,10 @@
|
|||
"@saleor/webhook-utils": "workspace:*",
|
||||
"@sentry/nextjs": "7.67.0",
|
||||
"@tanstack/react-query": "4.29.19",
|
||||
"@trpc/client": "10.38.1",
|
||||
"@trpc/next": "10.38.1",
|
||||
"@trpc/react-query": "10.38.1",
|
||||
"@trpc/server": "10.38.1",
|
||||
"@trpc/client": "10.38.5",
|
||||
"@trpc/next": "10.38.5",
|
||||
"@trpc/react-query": "10.38.5",
|
||||
"@trpc/server": "10.38.5",
|
||||
"@types/debug": "^4.1.7",
|
||||
"@urql/exchange-auth": "^2.1.4",
|
||||
"algoliasearch": "4.19.1",
|
||||
|
|
|
@ -22,10 +22,10 @@
|
|||
"@segment/analytics-node": "^1.1.0",
|
||||
"@sentry/nextjs": "7.67.0",
|
||||
"@tanstack/react-query": "^4.29.19",
|
||||
"@trpc/client": "10.38.1",
|
||||
"@trpc/next": "10.38.1",
|
||||
"@trpc/react-query": "10.38.1",
|
||||
"@trpc/server": "10.38.1",
|
||||
"@trpc/client": "10.38.5",
|
||||
"@trpc/next": "10.38.5",
|
||||
"@trpc/react-query": "10.38.5",
|
||||
"@trpc/server": "10.38.5",
|
||||
"@urql/exchange-auth": "^2.1.4",
|
||||
"@vitejs/plugin-react": "4.0.4",
|
||||
"graphql": "16.7.1",
|
||||
|
|
|
@ -20,10 +20,10 @@
|
|||
"@saleor/react-hook-form-macaw": "workspace:*",
|
||||
"@sentry/nextjs": "7.67.0",
|
||||
"@tanstack/react-query": "4.29.19",
|
||||
"@trpc/client": "10.38.1",
|
||||
"@trpc/next": "10.38.1",
|
||||
"@trpc/react-query": "10.38.1",
|
||||
"@trpc/server": "10.38.1",
|
||||
"@trpc/client": "10.38.5",
|
||||
"@trpc/next": "10.38.5",
|
||||
"@trpc/react-query": "10.38.5",
|
||||
"@trpc/server": "10.38.5",
|
||||
"@urql/exchange-auth": "^2.1.4",
|
||||
"avatax": "^23.7.0",
|
||||
"dotenv": "^16.3.1",
|
||||
|
|
709
pnpm-lock.yaml
709
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue