diff --git a/.env.example b/.env.example index 94533a182c849..2075bd01721f4 100644 --- a/.env.example +++ b/.env.example @@ -5,7 +5,3 @@ NEXT_PUBLIC_ALGOLIA_APP_ID=OOK48W9UCL NEXT_PUBLIC_ALGOLIA_SEARCH_KEY=ca98597f559459c216891b75989832f8 - -DATABASE_URL=postgresql://postgres:postgres@localhost:5432/changelog -NEXTAUTH_URL=http://localhost:3000 -NEXTAUTH_SECRET=secret diff --git a/.github/workflows/algolia-index.yml b/.github/workflows/algolia-index.yml index 37bfa5ea348e0..ebe5c52cabff2 100644 --- a/.github/workflows/algolia-index.yml +++ b/.github/workflows/algolia-index.yml @@ -33,10 +33,6 @@ jobs: - run: yarn install --frozen-lockfile if: steps.cache.outputs.cache-hit != 'true' - # Remove the changelog directory to avoid a build error due to missing `DATABASE_URL` - # and save some build time. - - run: rm -r app/changelog - # bun seems to be the most straightforward way to run a TypeScript script # without introducing another dependency like ts-node or tsx for everyone else diff --git a/.github/workflows/lint-404s.yml b/.github/workflows/lint-404s.yml index f0383875b5281..35e20ea42f448 100644 --- a/.github/workflows/lint-404s.yml +++ b/.github/workflows/lint-404s.yml @@ -35,10 +35,6 @@ jobs: - run: yarn install --frozen-lockfile if: steps.cache.outputs.cache-hit != 'true' - # Remove the changelog directory to avoid a build error due to missing `DATABASE_URL` - # and save some build time. - - run: rm -r app/changelog - - run: yarn build if: steps.filter.outputs.docs == 'true' diff --git a/app/changelog/%5Fadmin/[id]/edit/page.tsx b/app/changelog/%5Fadmin/[id]/edit/page.tsx deleted file mode 100644 index 4eaec1fa5e0a0..0000000000000 --- a/app/changelog/%5Fadmin/[id]/edit/page.tsx +++ /dev/null @@ -1,96 +0,0 @@ -import {Fragment, Suspense} from 'react'; -import Link from 'next/link'; - -import {editChangelog} from 'sentry-docs/actions/changelog'; -import {FileUpload} from 'sentry-docs/components/changelog/fileUpload'; -import {ForwardRefEditor} from 'sentry-docs/components/changelog/forwardRefEditor'; -import {TitleSlug} from 'sentry-docs/components/changelog/titleSlug'; -import {Button} from 'sentry-docs/components/changelog/ui/Button'; -import {Select} from 'sentry-docs/components/changelog/ui/Select'; -import prisma from 'sentry-docs/prisma'; - -export default async function ChangelogCreatePage({params}) { - const categories = await prisma.category.findMany({ - orderBy: { - name: 'asc', - }, - }); - const changelog = await prisma.changelog.findUnique({ - where: {id: params.id}, - include: { - author: true, - categories: true, - }, - }); - - if (!changelog) { - return ( - -
-

Changelog not found

-
- -
- ); - } - - return ( -
-
- - - -
- - - - This will be shown in the list - -
-
- - - - ); -} diff --git a/app/changelog/%5Fadmin/create/page.tsx b/app/changelog/%5Fadmin/create/page.tsx deleted file mode 100644 index fc0f211dc9756..0000000000000 --- a/app/changelog/%5Fadmin/create/page.tsx +++ /dev/null @@ -1,65 +0,0 @@ -import {Fragment} from 'react'; -import Link from 'next/link'; - -import {createChangelog} from 'sentry-docs/actions/changelog'; -import {FileUpload} from 'sentry-docs/components/changelog/fileUpload'; -import {ForwardRefEditor} from 'sentry-docs/components/changelog/forwardRefEditor'; -import {TitleSlug} from 'sentry-docs/components/changelog/titleSlug'; -import {Button} from 'sentry-docs/components/changelog/ui/Button'; -import {Select} from 'sentry-docs/components/changelog/ui/Select'; -import prisma from 'sentry-docs/prisma'; - -export default async function ChangelogCreatePage() { - const categories = await prisma.category.findMany({ - orderBy: { - name: 'asc', - }, - }); - - return ( -
-
- - -
- -