Skip to content

armgit / fx0

Public Imported from GitHub
0

A lightweight design agent built with libfx. Describe a page and an agent writes it as one HTML file.

TypeScript

Alias clsx and tailwind-merge to cn so class-variance-authority shares one merge implementation

shadcnc8f39f4d316f
diff --git a/next.config.mjs b/next.config.mjs
index 0a84af5..b816ee0 100644
--- a/next.config.mjs
+++ b/next.config.mjs
@@ -5,7 +5,12 @@ const nextConfig = {
cacheComponents: true,
partialPrefetching: true,
serverExternalPackages: ['libfx'],
- turbopack: { root: import.meta.dirname },
+ turbopack: {
+ root: import.meta.dirname,
+ // class-variance-authority still imports clsx; resolve it to cn so the bundle
+ // carries one class-merging implementation.
+ resolveAlias: { clsx: 'cn', 'tailwind-merge': 'cn' },
+ },
// The DESIGN.md catalog is read from disk when a new chat picks one.
outputFileTracingIncludes: { '/api/prompt': ['./lib/design-md/*.md'] },
env: {