create-velox-app 0.6.95 → 0.6.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/dist/templates/trpc.js
CHANGED
|
@@ -30,8 +30,8 @@ function generateApiTsupConfig() {
|
|
|
30
30
|
return compileTemplate('api/tsup.config.ts', DEFAULT_CONFIG);
|
|
31
31
|
}
|
|
32
32
|
function generateEnvExample(config) {
|
|
33
|
-
//
|
|
34
|
-
return compileTemplate('api/env.
|
|
33
|
+
// Use tRPC-specific env (no API_PREFIX since tRPC uses /trpc)
|
|
34
|
+
return compileTemplate('api/env.trpc', config);
|
|
35
35
|
}
|
|
36
36
|
function generatePrismaSchema(config) {
|
|
37
37
|
// Reuse default schema - same data model
|
package/package.json
CHANGED
|
@@ -42,6 +42,15 @@ function RootLayout() {
|
|
|
42
42
|
Users
|
|
43
43
|
</Link>
|
|
44
44
|
{/* @endif default */}
|
|
45
|
+
{/* @if trpc */}
|
|
46
|
+
<Link
|
|
47
|
+
to="/users"
|
|
48
|
+
className={styles.navLink}
|
|
49
|
+
activeProps={{ className: styles.navLinkActive }}
|
|
50
|
+
>
|
|
51
|
+
Users
|
|
52
|
+
</Link>
|
|
53
|
+
{/* @endif trpc */}
|
|
45
54
|
{/* @if auth */}
|
|
46
55
|
{isAuthenticated && (
|
|
47
56
|
<Link
|