Skip to content

Commit 1539599

Browse files
committed
chore: cleanup
1 parent 5bc17bd commit 1539599

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

.claude/settings.local.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
"WebFetch(domain:raw.githubusercontent.com)",
1818
"WebFetch(domain:api.github.com)",
1919
"WebFetch(domain:tanstack.com)",
20-
"WebFetch(domain:www.npmjs.com)",
21-
"Bash(gh api *)"
20+
"WebFetch(domain:www.npmjs.com)"
2221
],
2322
"deny": []
2423
}

packages/create/src/frameworks/react/add-ons/inngest/assets/src/routes/demo/inngest.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ const sendHelloEvent = createServerFn({ method: 'POST' })
1313
})
1414
.handler(async ({ data: name }) => {
1515
const { ids } = await inngest.send(helloWorld.create({ name }))
16-
return { eventId: ids[0] }
16+
const eventId = ids[0]
17+
if (!eventId) throw new Error('Inngest did not return an event ID')
18+
return { eventId }
1719
})
1820

1921
export const Route = createFileRoute('/demo/inngest')({
@@ -87,7 +89,11 @@ function RouteComponent() {
8789
)}
8890

8991
{error && (
90-
<div className="rounded-xl border border-[rgba(200,70,70,0.3)] bg-[rgba(200,70,70,0.08)] p-4 text-sm text-[#c04646]">
92+
<div
93+
role="alert"
94+
aria-live="polite"
95+
className="rounded-xl border border-[rgba(200,70,70,0.3)] bg-[rgba(200,70,70,0.08)] p-4 text-sm text-[#c04646]"
96+
>
9197
{error}
9298
</div>
9399
)}
@@ -100,7 +106,8 @@ function RouteComponent() {
100106
<li>
101107
Uncomment <code>INNGEST_DEV=1</code> in <code>.env.local</code>{' '}
102108
during development — without it, the SDK defaults to cloud mode and
103-
will try to authenticate against Inngest Cloud. You can also use `INNGEST_DEV=1 pnpm dev` to start the application.
109+
will try to authenticate against Inngest Cloud. You can also use{' '}
110+
<code>INNGEST_DEV=1 pnpm dev</code> to start the application.
104111
</li>
105112
<li>
106113
Run the Dev Server in a second terminal:{' '}

0 commit comments

Comments
 (0)