Skip to content

Nicholai/fix conversations context#83

Merged
NicholaiVogel merged 4 commits intomainfrom
nicholai/fix-conversations-context
Feb 15, 2026
Merged

Nicholai/fix conversations context#83
NicholaiVogel merged 4 commits intomainfrom
nicholai/fix-conversations-context

Conversation

@NicholaiVogel
Copy link
Copy Markdown
Contributor

RAHHHHH

Move the conversations context and hook from the layout file to
src/contexts/conversations-context.tsx. Next.js layouts cannot export
hooks or types - only the default component export is allowed.
The memory-provider module imports better-sqlite3, a native Node.js
module that cannot run in Cloudflare Workers. This causes OpenNext
build failures when esbuild tries to resolve the module.

Changes:
- Use dynamically constructed import path to prevent static analysis
- Remove memory provider from getServerDb (never used on Cloudflare)
- Add memory-provider to serverExternalPackages in next.config.ts
The variable name 'module' is reserved in Next.js and causes ESLint
error @next/next/no-assign-module-variable.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
compass 44de2db Feb 15 2026, 09:26 PM

@NicholaiVogel NicholaiVogel merged commit c216737 into main Feb 15, 2026
7 of 10 checks passed
@NicholaiVogel NicholaiVogel deleted the nicholai/fix-conversations-context branch February 15, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant