4.0.0 (2024-07-24)
⚠ BREAKING CHANGES
- Use open-next for building (BREAKING) (jetbridge#95)
- Create distribution construct / refactor (jetbridge#26)
Features
- add 'rsc', 'next-router-prefetch', 'next-router-state-tree' to lambda cache policy (#107) (ee98a15)
- Add ability to add IAM Auth to Lambda Function URLs (#109) (4416343)
- add cache deployment bucket (5365bee)
- add cache-control on all origins (#187) (a874b09)
- add dynamodb table and provider for tag and path revalidation (#145) (e68e49f)
- Add Image Optimization (3faf626)
- add NextjsOverrides (#181) (1524c8e)
- add useEfs and vpc properties to NextjsAssetsDeployme… (#94) (314f046)
- allow custom buildPath (00e12a4)
- allow to use an existing sharp layer via arn (#96) (a437e86)
- basePath and allow multiple next.js sites on same distribution (passing custom distribution) (#148) (37788b3)
- Cache-control max-age (#20) (b15a89a), closes #22 #29 #32 #31 #33 #35
- choose between npm and yarn as package manager for NextJS build (#77) (106322c)
- conditionally create cache and response header policies based on overrides (#196) (05a77d5)
- customize name of edge function stack id (#79) (72cb72c)
- extract NextjsDomain from NextjsDistribution (#174) (99842fe)
- faster asset deployment (#137) (60da6e2)
- move from lambda@edge to OAC (9cdb7de)
- Refactor functionality into discrete constructs (#1) (8186b8f)
- security headers by default (#186) (a8b5c4a)
- set output trace roots (4d1f5b6)
- update edge lambda from node 18 to 20 (#179) (f04836c)
- update lambda to Node.js 20 (#170) (48ab3b6)
- Use open-next for building (BREAKING) (#95) (c49774c), closes #94
- use static asset bucket for cache (e49b5aa)
Bug Fixes
-
#118 allow to customize the static response headers policy (#153) (15deeb7)
-
400 Bad request when creating CachePolicy on the Distribution. (#188) (c4c8159)
-
Allow alternate domain names in the distribution (#101) (3680304)
-
convert duration to seconds for cache control (240e84b)
-
Credential should be scoped to a valid region (14abf8b)
-
cross-env issue for image opt fn (b25db8c)
-
cross-environment issue (123abc0)
-
fixes ssg cache files not being used by open-next cache handler (#150) (350933a), closes #149
-
image optimization and absolute trace output path (dc5b4c5)
-
jest config (67de76a)
-
prevent crash if nextjs app does not contain public folder (#35) (ed7494e)
-
remove default origin fallback group for direct lambda invocation (64bb29d), closes /github.com/serverless-stack/sst/blob/b56c2ea021290211c72841c605cec58579ef3591/packages/sst/src/constructs/SsrSite.ts#L1053-L1058
-
Request body was not being passed (ce987dc)
-
server actions by removing origin group + distribution refactor (#131) (80ae07b)
-
skip asset creation when deploy is being made with exclusively flag (#161) (d73b6ef)
-
sync projen updates (455c49a)
-
update default lambda memory and allow cache bucket config (6da84cc)
-
update quickstart doc to address non monorepo (#32) (faff3d0)
-
update zip command to zip dot folder (4b63f25)
-
Use S3
Upload
function instead ofPutObjectCommand
(#218) (8e1e853) -
Wait to deploy server function until rewriting is complete (#86) (a13cd65)