Skip to content

Commit

Permalink
add more descriptive (hidden) text to Read More links, fix timeout co…
Browse files Browse the repository at this point in the history
…nfig value for dev, try autoPause prod value
  • Loading branch information
SSTPIERRE2 committed Mar 25, 2024
1 parent 6efa483 commit 183f699
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/web/components/PostCard/PostCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -43,7 +44,7 @@ const PostCard = ({
</div>
<p>{abstract}</p>
<Link href={`/blog/${slug}`} className={styles.readMore}>
Read more{' '}
Read more <VisuallyHidden>about this post</VisuallyHidden>
<ArrowRight className={styles.readMoreArrow} size="1.25rem" />
</Link>
</div>
Expand Down
2 changes: 1 addition & 1 deletion stacks/Database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
});

Expand Down
2 changes: 1 addition & 1 deletion stacks/Web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 183f699

Please sign in to comment.