Generate logos using DALL·E
toolConfig.ts
file, and the image
is automatically stored on Cloudflare R2 and displayed after generation.DALL·E Logo generator
app/api/(apps)/dalle/route.ts
.Use DALL·E without storage
lib/types/toolconfig.ts
to understand the various configuration
fields in the demo app.prompt.ts
file and passing different input variables.
prompt.ts
file should manage user input like this:
ideaDescription
input variable. We’ll use it later.toolConfig.ts
to include:
prompt.ts
should match name
in toolConfig.ts
. See example below.type
field in toolConfig.ts
is specified correctly.
InputCapture.tsx
uses this to determine what to include (fields, file
uploads) and which API endpoint to call.page.tsx
page in /app
folder of our demo app will get the data from toolConfig.ts
and pass it to the InputCapture
component to automatically build a form based on this.
InfoCard
component.