Added pre-renders everywhere
- Except jsx files explicitly stating "use client"
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
				
			|||||||
"use client"
 | 
					export const prerender = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import * as React from "react"
 | 
					import * as React from "react"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,6 +13,7 @@ import {
 | 
				
			|||||||
  TabsTrigger,
 | 
					  TabsTrigger,
 | 
				
			||||||
} from "../components/ui/tabs";
 | 
					} from "../components/ui/tabs";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export const prerender = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function ShowcaseTabs({ currentLocale }) {
 | 
					export function ShowcaseTabs({ currentLocale }) {
 | 
				
			||||||
  const t = useTranslations(currentLocale);
 | 
					  const t = useTranslations(currentLocale);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,3 @@
 | 
				
			|||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import * as React from "react"
 | 
					import * as React from "react"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { icons } from "../lib/icons"
 | 
					import { icons } from "../lib/icons"
 | 
				
			||||||
@@ -19,6 +17,7 @@ import {
 | 
				
			|||||||
    TooltipTrigger,
 | 
					    TooltipTrigger,
 | 
				
			||||||
  } from "./ui/tooltip"
 | 
					  } from "./ui/tooltip"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  export const prerender = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Please note that clang = lang, it's just for more confusion
 | 
					// Please note that clang = lang, it's just for more confusion
 | 
				
			||||||
export function ThemeSelector({ tooltip }) {
 | 
					export function ThemeSelector({ tooltip }) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
export const prerender = false;
 | 
					export const prerender = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import type { GetStaticPaths } from "astro";
 | 
					import type { GetStaticPaths } from "astro";
 | 
				
			||||||
import MainLayout from "../layouts/MainLayout.astro";
 | 
					import MainLayout from "../layouts/MainLayout.astro";
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user