fix composite error

This commit is contained in:
Aman Varshney
2025-05-28 21:03:33 +05:30
parent 591ecf8a09
commit 46651fb90d
4 changed files with 14 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
---
"create-better-t-stack": patch
---
add composite in server for references

View File

@@ -18,6 +18,9 @@
"name": "next" "name": "next"
} }
], ],
{#unless (or (eq backend "convex") (eq backend "none"))}}
"composite": true,
{{/unless}}
"paths": { "paths": {
"@/*": ["./src/*"] "@/*": ["./src/*"]
} }

View File

@@ -20,6 +20,9 @@
"node", "bun" "node", "bun"
{{/if}} {{/if}}
], ],
{{#unless (or (eq backend "convex") (eq backend "none"))}}
"composite": true,
{{/unless}}
"jsx": "react-jsx"{{#if (eq backend 'hono')}}, "jsx": "react-jsx"{{#if (eq backend 'hono')}},
"jsxImportSource": "hono/jsx"{{/if}} "jsxImportSource": "hono/jsx"{{/if}}
}, },

View File

@@ -9,7 +9,7 @@ const DrawerLayout = () => {
<Drawer> <Drawer>
<Drawer.Screen <Drawer.Screen
name="index" name="index"
options={{ options=\{{
headerTitle: "Home", headerTitle: "Home",
drawerLabel: "Home", drawerLabel: "Home",
drawerIcon: ({ size, color }) => ( drawerIcon: ({ size, color }) => (
@@ -20,7 +20,7 @@ const DrawerLayout = () => {
{{#if (includes examples "todo")}} {{#if (includes examples "todo")}}
<Drawer.Screen <Drawer.Screen
name="todos" name="todos"
options={{ options=\{{
headerTitle: "Todos", headerTitle: "Todos",
drawerLabel: "Todos", drawerLabel: "Todos",
drawerIcon: ({ size, color }) => ( drawerIcon: ({ size, color }) => (
@@ -31,7 +31,7 @@ const DrawerLayout = () => {
{{/if}} {{/if}}
<Drawer.Screen <Drawer.Screen
name="(tabs)" name="(tabs)"
options={{ options=\{{
headerTitle: "Tabs", headerTitle: "Tabs",
drawerLabel: "Tabs", drawerLabel: "Tabs",
drawerIcon: ({ size, color }) => ( drawerIcon: ({ size, color }) => (