feat: complete saleor core extensions app with React email templates
- Order confirmation, shipped, and cancelled email templates - Uses @react-email/components for professional HTML emails - Sends admin and customer notifications - Integrates with Resend for email delivery - Webhook handlers for ORDER_CREATED, ORDER_FULFILLED, ORDER_CANCELLED - Docker image optimized for production - Persistent auth data storage via PVC
This commit is contained in:
+55
@@ -0,0 +1,55 @@
|
||||
import { CodegenConfig } from "@graphql-codegen/cli";
|
||||
|
||||
const config: CodegenConfig = {
|
||||
schema: "./graphql/schema.graphql",
|
||||
documents: ["./graphql/**/*.graphql"],
|
||||
generates: {
|
||||
"./generated/graphql.ts": {
|
||||
plugins: [
|
||||
{
|
||||
add: {
|
||||
content:
|
||||
"type JSONValue = string | number | boolean | null | { [key: string]: JSONValue } | JSONValue[];",
|
||||
},
|
||||
},
|
||||
"typescript",
|
||||
"typescript-operations",
|
||||
"urql-introspection",
|
||||
{
|
||||
"typescript-urql": {
|
||||
documentVariablePrefix: "Untyped",
|
||||
fragmentVariablePrefix: "Untyped",
|
||||
},
|
||||
},
|
||||
"typed-document-node",
|
||||
],
|
||||
config: {
|
||||
dedupeFragments: true,
|
||||
defaultScalarType: "unknown",
|
||||
immutableTypes: true,
|
||||
strictScalars: true,
|
||||
skipTypename: true,
|
||||
scalars: {
|
||||
_Any: "unknown",
|
||||
Date: "string",
|
||||
DateTime: "string",
|
||||
Decimal: "number",
|
||||
Minute: "number",
|
||||
GenericScalar: "JSONValue",
|
||||
JSON: "JSONValue",
|
||||
JSONString: "string",
|
||||
Metadata: "Record<string, string>",
|
||||
PositiveDecimal: "number",
|
||||
Upload: "unknown",
|
||||
UUID: "string",
|
||||
WeightScalar: "number",
|
||||
Day: "string",
|
||||
Hour: "number",
|
||||
PositiveInt: "number",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user