Skip to content

Commit

Permalink
big directus clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jsladerman committed Oct 28, 2024
1 parent 4378d73 commit 7f0cb80
Show file tree
Hide file tree
Showing 30 changed files with 850 additions and 5,452 deletions.
13 changes: 1 addition & 12 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Button, CloseIcon } from '@pluralsh/design-system'
import { type InferGetStaticPropsType } from 'next'
import Link from 'next/link'

import { until } from '@open-draft/until'
import { type Variants, motion } from 'framer-motion'
import styled from 'styled-components'
// @ts-expect-error
Expand All @@ -21,9 +20,6 @@ import { ImpactCardSection } from '@src/components/page-sections/ImpactCardSecti
import { QuoteSection } from '@src/components/page-sections/QuoteSection'
import { HomePageHero } from '@src/components/PageHeros'
import { CenteredSectionHead } from '@src/components/SectionHeads'
import { getTinyRepos } from '@src/data/getRepos'
import { getStacks } from '@src/data/getStacks'
import { getStackTabData } from '@src/data/getStackTabData'
import {
PageHomepageDocument,
type PageHomepageQuery,
Expand Down Expand Up @@ -349,11 +345,6 @@ export const getStaticProps = async () => {
>({
query: PageHomepageDocument,
})
const { data: repos, error: reposError } = await until(() => getTinyRepos())
const { data: stacks, error: stacksError } = await until(() => getStacks())

const buildStackTabs = getStackTabData({ repos, stacks })

const page = data.page_homepage

return propsWithGlobalSettings({
Expand All @@ -362,10 +353,8 @@ export const getStaticProps = async () => {
'Open-source application deployment, faster than ever without sacrificing compliance.',
articleCards: data.page_homepage?.article_cards || null,
quotes: normalizeQuotes(page?.quotes),
featuredQuote: page?.featured_quote || null,
buildStackTabs,
footerVariant: FooterVariant.kitchenSink,
errors: combineErrors([error, stacksError, reposError]),
errors: combineErrors([error]),
})
}

Expand Down
Loading

0 comments on commit 7f0cb80

Please sign in to comment.