Add server only to restrict things properly, starting on Prisma setup.

This commit is contained in:
2025-03-18 09:48:08 -05:00
parent da34ccfa0c
commit 4b25b58c18
16 changed files with 391 additions and 3 deletions

View File

@@ -3,12 +3,14 @@ import { AppProps } from 'next/app';
import './globals.scss';
import { LanguageProvider } from '@/providers/LanguageProvider';
import { APIProvider } from '@/providers/APIProvider';
import { Header } from '@/components/Header';
const RootLayout:React.FC<AppProps> = ({ Component, pageProps }) => {
return (
<>
<LanguageProvider>
<APIProvider>
<Header />
<Component {...pageProps} />
</APIProvider>
</LanguageProvider>

View File

@@ -1,3 +1,4 @@
import 'server-only';
import { typeDefs, schema } from "@/graphql/schema";
import { ApolloServer } from "apollo-server-micro";
import { NextApiRequest, NextApiResponse } from "next";

View File

@@ -1,3 +1,4 @@
import 'server-only';
import { NextApiHandler } from "next";
import * as fs from 'fs';
import * as path from 'path';

View File

@@ -1,3 +1,4 @@
import 'server-only';
import { NextApiHandler } from "next";
import * as fs from 'fs';
import * as path from 'path';