create-croissant 0.1.23 → 0.1.24

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.1.23",
6
+ "version": "0.1.24",
7
7
  "description": "Scaffold a new project using the Croissant Stack",
8
8
  "repository": {
9
9
  "type": "git",
@@ -114,7 +114,7 @@ export function AppSidebar({ items = authNavItems, ...props }: AppSidebarProps)
114
114
  <Sidebar {...props}>
115
115
  <SidebarHeader>
116
116
  <div className="flex items-center gap-2 px-4 py-2">
117
- <span className="font-bold">LLM Trust</span>
117
+ <span className="font-bold">Croissant Stack</span>
118
118
  </div>
119
119
  </SidebarHeader>
120
120
  <SidebarContent>
@@ -17,7 +17,7 @@ export const Route = createRootRoute({
17
17
  content: "width=device-width, initial-scale=1",
18
18
  },
19
19
  {
20
- title: "TanStack Start Starter",
20
+ title: "Croissant Stack Starter",
21
21
  },
22
22
  ],
23
23
  links: [
@@ -30,6 +30,17 @@ const planetSchema = z.object({
30
30
  })
31
31
 
32
32
  export const Route = createFileRoute("/_public/examples/client-orpc")({
33
+ head: () => ({
34
+ meta: [
35
+ {
36
+ title: "Client + oRPC Example | Croissant Stack",
37
+ },
38
+ {
39
+ name: "description",
40
+ content: "Explore client-side data fetching and mutations with oRPC in Croissant Stack.",
41
+ },
42
+ ],
43
+ }),
33
44
  component: ClientORPC,
34
45
  })
35
46
 
@@ -2,6 +2,17 @@ import { createFileRoute } from "@tanstack/react-router"
2
2
  import { orpc } from "@/lib/orpc"
3
3
 
4
4
  export const Route = createFileRoute("/_public/examples/isr")({
5
+ head: () => ({
6
+ meta: [
7
+ {
8
+ title: "Incremental Static Regeneration (ISR) Example | Croissant Stack",
9
+ },
10
+ {
11
+ name: "description",
12
+ content: "Experience high-performance page loads with ISR in Croissant Stack.",
13
+ },
14
+ ],
15
+ }),
5
16
  loader: async () => {
6
17
  // In a real ISR scenario, this would be cached on the server
7
18
  // For this example, we'll fetch planets via oRPC
@@ -28,6 +28,17 @@ const planetSchema = z.object({
28
28
  })
29
29
 
30
30
  export const Route = createFileRoute("/_public/examples/ssr-orpc")({
31
+ head: () => ({
32
+ meta: [
33
+ {
34
+ title: "SSR + oRPC Example | Croissant Stack",
35
+ },
36
+ {
37
+ name: "description",
38
+ content: "Learn how to use Server-Side Rendering (SSR) with oRPC in Croissant Stack.",
39
+ },
40
+ ],
41
+ }),
31
42
  loader: async () => {
32
43
  const planets = await orpc.planets.getPlanets()
33
44
  return { planets }
@@ -8,6 +8,29 @@ type Outputs = InferRouterOutputs<typeof router>
8
8
  type Planet = Outputs["planets"]["getPlanets"][number]
9
9
 
10
10
  export const Route = createFileRoute("/_public/")({
11
+ head: () => ({
12
+ meta: [
13
+ {
14
+ title: "Croissant Stack - The Ultimate TanStack Starter",
15
+ },
16
+ {
17
+ name: "description",
18
+ content: "Build full-stack applications faster with Croissant Stack. Featuring TanStack Start, oRPC, and Better Auth.",
19
+ },
20
+ {
21
+ property: "og:title",
22
+ content: "Croissant Stack - The Ultimate TanStack Starter",
23
+ },
24
+ {
25
+ property: "og:description",
26
+ content: "Build full-stack applications faster with Croissant Stack.",
27
+ },
28
+ {
29
+ property: "og:image",
30
+ content: "/og-image.png",
31
+ },
32
+ ],
33
+ }),
11
34
  loader: async () => {
12
35
  const [helloRes, planets] = await Promise.all([
13
36
  orpc.hello({ name: "Croissant Stack" }),
@@ -2,6 +2,21 @@ import { createFileRoute } from "@tanstack/react-router"
2
2
  import { LoginForm } from "@/components/login-form"
3
3
 
4
4
  export const Route = createFileRoute("/_public/login")({
5
+ head: () => ({
6
+ meta: [
7
+ {
8
+ title: "Sign In | Croissant Stack",
9
+ },
10
+ {
11
+ name: "description",
12
+ content: "Sign in to your Croissant Stack account.",
13
+ },
14
+ {
15
+ name: "robots",
16
+ content: "noindex, follow",
17
+ },
18
+ ],
19
+ }),
5
20
  headers: () => ({
6
21
  "Cache-Control": "public, max-age=3600, s-maxage=3600, stale-while-revalidate=86400",
7
22
  }),
@@ -2,6 +2,17 @@ import { createFileRoute } from "@tanstack/react-router"
2
2
  import { SignupForm } from "@/components/signup-form"
3
3
 
4
4
  export const Route = createFileRoute("/_public/signup")({
5
+ head: () => ({
6
+ meta: [
7
+ {
8
+ title: "Create an Account | Croissant Stack",
9
+ },
10
+ {
11
+ name: "description",
12
+ content: "Join Croissant Stack today. Create an account to start building with the best stack.",
13
+ },
14
+ ],
15
+ }),
5
16
  headers: () => ({
6
17
  "Cache-Control": "public, max-age=3600, s-maxage=3600, stale-while-revalidate=86400",
7
18
  }),