Skip to content

Commit 76f395e

Browse files
fix: ssr
1 parent ab00ccf commit 76f395e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

amplify.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,21 @@ frontend:
55
commands:
66
- corepack enable
77
- corepack prepare pnpm@latest --activate
8-
- pnpm install
8+
- pnpm install --frozen-lockfile
99
build:
1010
commands:
1111
- pnpm run build
1212
artifacts:
13+
# Next.js SSR requires both .next and standalone/serverless files
1314
baseDirectory: .next
1415
files:
1516
- '**/*'
1617
cache:
1718
paths:
1819
- node_modules/**/*
1920
- .pnpm-store/**/*
20-
21+
customHeaders:
22+
- pattern: '**/*'
23+
headers:
24+
- key: Cache-Control
25+
value: public,max-age=0,must-revalidate

0 commit comments

Comments
 (0)