diff --git a/pages/careers/hire/[job].tsx b/pages/careers/hire/[job].tsx index 6e1553be..e79b464e 100644 --- a/pages/careers/hire/[job].tsx +++ b/pages/careers/hire/[job].tsx @@ -21,24 +21,6 @@ import { propsWithGlobalSettings } from '@src/utils/getGlobalProps' const PAGE_PARAM_NAME = 'job' as const -export const getStaticPaths: GetStaticPaths = async () => { - if (process.env.NODE_ENV === 'development') { - return { - paths: [], - fallback: 'blocking' as const, - } - } - - const { data: slugs } = await getJobListingSlugs() - - return { - paths: (slugs || []).map((slug) => ({ - params: { [PAGE_PARAM_NAME]: slug }, - })), - fallback: false as const, - } -} - export default function Index({ markdoc, job, @@ -94,6 +76,17 @@ export type JobPageProps = { markdoc: MarkdocPage } +export const getStaticPaths: GetStaticPaths = async () => { + const { data: slugs } = await getJobListingSlugs() + + return { + paths: (slugs || []).map((slug) => ({ + params: { [PAGE_PARAM_NAME]: slug }, + })), + fallback: 'blocking', + } +} + export const getStaticProps: GetStaticProps = async (context) => { const slug = context.params?.[PAGE_PARAM_NAME] diff --git a/src/generated/graphqlPlural.ts b/src/generated/graphqlPlural.ts index 45131543..38b8a42b 100644 --- a/src/generated/graphqlPlural.ts +++ b/src/generated/graphqlPlural.ts @@ -578,6 +578,8 @@ export type ConsoleInstance = { status: ConsoleInstanceStatus; /** the subdomain this instance lives under */ subdomain: Scalars['String']['output']; + /** whether this is a shared or dedicated console */ + type: ConsoleInstanceType; updatedAt?: Maybe; /** full console url of this instance */ url: Scalars['String']['output']; @@ -592,6 +594,8 @@ export type ConsoleInstanceAttributes = { region: Scalars['String']['input']; /** a heuristic size of this instance */ size: ConsoleSize; + /** the type of console instance */ + type: ConsoleInstanceType; }; export type ConsoleInstanceConnection = { @@ -612,7 +616,14 @@ export enum ConsoleInstanceStatus { DeploymentCreated = 'DEPLOYMENT_CREATED', DeploymentDeleted = 'DEPLOYMENT_DELETED', Pending = 'PENDING', - Provisioned = 'PROVISIONED' + Provisioned = 'PROVISIONED', + StackCreated = 'STACK_CREATED', + StackDeleted = 'STACK_DELETED' +} + +export enum ConsoleInstanceType { + Dedicated = 'DEDICATED', + Shared = 'SHARED' } export type ConsoleInstanceUpdateAttributes = { @@ -3391,6 +3402,7 @@ export type RootMutationTypeLinkPublisherArgs = { export type RootMutationTypeLoginArgs = { + captcha?: InputMaybe; deviceToken?: InputMaybe; email: Scalars['String']['input']; password: Scalars['String']['input']; @@ -4966,6 +4978,7 @@ export type User = { id: Scalars['ID']['output']; impersonationPolicy?: Maybe; insertedAt?: Maybe; + intercomId?: Maybe; invites?: Maybe>>; jwt?: Maybe; loginMethod?: Maybe;