kewinzaq1
TTCTheo's Typesafe Cult
•Created by kewinzaq1 on 1/22/2023 in #questions
Problem with websocket in t3-app
3 replies
TTCTheo's Typesafe Cult
•Created by kewinzaq1 on 12/15/2022 in #questions
myArr.findLast is not a function
Hi there, i have a problem with findLast in my test environment. It works properly in the browser, but when i was testing it, it cause error myArr.findLast is not a function
11 replies
TTCTheo's Typesafe Cult
•Created by kewinzaq1 on 12/12/2022 in #questions
Failed to load resource the server responded with a status of 500 (Internal Server Error)
4 replies
TTCTheo's Typesafe Cult
•Created by kewinzaq1 on 12/10/2022 in #questions
Issues with next google fonts
According to next docs, I applied config in _app. and tailwind.config.mjs, but this approach works badly, after some refresh app shows the expected font and sometimes the default font is displayed.
import { type AppType } from "next/app";
import { type Session } from "next-auth";
import { SessionProvider } from "next-auth/react";
import { Space_Grotesk } from "@next/font/google";
const spaceGrotesk = Space_Grotesk({
variable: "--font-space-grotesk",
subsets: ["latin"],
});
import { trpc } from "../utils/trpc";
import "../styles/globals.css";
import { Layout } from "src/components/layout";
const MyApp: AppType<{ session: Session | null; withoutNavbar: boolean }> = ({
Component,
pageProps: { session, ...pageProps },
}) => {
return (
<SessionProvider session={session}>
<main className={
${spaceGrotesk.variable} min-h-screen font-sans
}>
<Layout withoutNavbar={pageProps.withoutNavbar}>
<Component {...pageProps} />
</Layout>
</main>
</SessionProvider>
);
};
export default trpc.withTRPC(MyApp);
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { fontFamily } = require("tailwindcss/defaultTheme");
/ @type {import('tailwindcss').Config} */
module.exports = {
mode: "jit",
content: ["./src//*.{js,ts,jsx,tsx}"],
theme: {
extend: {
fontFamily: {
sans: ["var(--font-space-grotesk)", ...fontFamily.sans],
},
},
},
plugins: [],
};16 replies