From 183f6991a7811e9fc6d971d105e4bb52db4001a2 Mon Sep 17 00:00:00 2001 From: "Steve St.Pierre" Date: Mon, 25 Mar 2024 10:16:27 -0400 Subject: [PATCH] add more descriptive (hidden) text to Read More links, fix timeout config value for dev, try autoPause prod value --- packages/web/components/PostCard/PostCard.tsx | 3 ++- stacks/Database.ts | 2 +- stacks/Web.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/web/components/PostCard/PostCard.tsx b/packages/web/components/PostCard/PostCard.tsx index 829bd4b..1746af1 100644 --- a/packages/web/components/PostCard/PostCard.tsx +++ b/packages/web/components/PostCard/PostCard.tsx @@ -3,6 +3,7 @@ import SupportingLink from '../SupportingLink'; import styles from './PostCard.module.css'; import { ArrowRight } from 'react-feather'; import dayjs from '@/utils/extendedDayJs'; +import VisuallyHidden from '../VisuallyHidden'; interface Props { title: string; @@ -43,7 +44,7 @@ const PostCard = ({

{abstract}

- Read more{' '} + Read more about this post diff --git a/stacks/Database.ts b/stacks/Database.ts index 38cd35e..8ba8cfc 100644 --- a/stacks/Database.ts +++ b/stacks/Database.ts @@ -7,7 +7,7 @@ export function Database({ stack }: StackContext) { migrations: 'packages/core/migrations', types: 'packages/core/src/sql.generated.ts', scaling: { - autoPause: stack.stage !== 'prod', + autoPause: stack.stage === 'prod' ? 60 : true, }, }); diff --git a/stacks/Web.ts b/stacks/Web.ts index ab69401..ee8c4f0 100644 --- a/stacks/Web.ts +++ b/stacks/Web.ts @@ -8,7 +8,7 @@ export function Web({ stack }: StackContext) { customDomain: stack.stage === 'prod' ? 'stephenstpierre.com' : undefined, path: 'packages/web', warm: stack.stage === 'prod' ? 40 : undefined, - timeout: stack.stage === 'prod' ? '30 seconds' : undefined, + timeout: stack.stage === 'prod' ? '45 seconds' : '10 seconds', openNextVersion: '2.3.7', environment: { NEXT_SHARP_PATH: '/tmp/node_modules/sharp',