diff --git a/.meshrc.yml b/.meshrc.yml index bafd361..76dcb6a 100644 --- a/.meshrc.yml +++ b/.meshrc.yml @@ -1,5 +1,5 @@ serve: - endpoint: /api/graphql + endpoint: /api additionalEnvelopPlugins: "./src/envelopePlugin.ts" sources: - name: Gitea diff --git a/src/pages/api/hello.ts b/src/pages/api/hello.ts deleted file mode 100644 index 838a9b1..0000000 --- a/src/pages/api/hello.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { NextApiRequest, NextApiResponse } from 'next' - -type Data = { - name: string -} - -export default function handler( - req: NextApiRequest, - res: NextApiResponse -) { - res.status(200).json({ name: 'John Doe' }) -} diff --git a/src/pages/api/graphql.ts b/src/pages/api/index.ts similarity index 100% rename from src/pages/api/graphql.ts rename to src/pages/api/index.ts diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 57e2a8c..0c58c04 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,118 +1,12 @@ -import Image from 'next/image' -import { Inter } from 'next/font/google' - -const inter = Inter({ subsets: ['latin'] }) - export default function Home() { return ( -
-
-

- Get started by editing  - src/pages/index.tsx -

-
- - By{' '} - Vercel Logo - -
-
- -
- Next.js Logo -
- -
- -

- Docs{' '} - - -> - -

-

- Find in-depth information about Next.js features and API. -

-
- - -

- Learn{' '} - - -> - -

-

- Learn about Next.js in an interactive course with quizzes! -

-
- - -

- Templates{' '} - - -> - -

-

- Discover and deploy boilerplate example Next.js projects. -

-
- - -

- Deploy{' '} - - -> - -

-

- Instantly deploy your Next.js site to a shareable URL with Vercel. -

-
-
-
+