opennextjs-aws

Open-source Next.js adapter for AWS

MIT License

Stars
3.9K

Bot releases are visible (Hide)

opennextjs-aws - v3.1.3

Published by github-actions[bot] 27 days ago

Changes

  • 4ec9265: fix middleware and headers matcher not working properly with i18n
  • 4894974: Improve config validation
  • 55a6bcc: fix incremental cache for next 15
opennextjs-aws - v3.1.2

Published by github-actions[bot] about 1 month ago

Changes

  • 1b87222: patch asyncStorage for ISR and fetch
  • a7540fd: fix wrong locale in middleware
  • b8bd2f0: fix __import_unsupported being undefined
opennextjs-aws - v3.1.1

Published by github-actions[bot] about 2 months ago

Changes

  • 85af1ce: Fix node crashing when used without stream
  • 2094c9b: fix issue with fetch cache for new page
opennextjs-aws - v3.1.0

Published by github-actions[bot] about 2 months ago

Breaking Change

  • If you use a custom converter or custom wrapper InternalResult body is now a ReadableStream instead of a string
  • External middleware when used with the new enableCacheInterception will need to have the correct permission (and environment variable) to access the incremental and tag cache as well as the queue (By default S3, DynamoDb, SQS )

Changes

  • b88ae13: Replace InternalResult body from string to ReadableStream
  • 0558bf6: Add an optional external cache. More info here
  • c8d692b: fix missing polyfill URLPattern
  • 1b91708: fix 404 when basePath is set
  • 8ddb621: fix lambda streaming hanging after return
opennextjs-aws - v3.0.8

Published by github-actions[bot] 3 months ago

Changes

  • 75857cf: fix middleware for next 15
  • 1dd2b16: fix Nx monorepo support. Thanks @breningham @jarodsim
  • 220be99: fix rewrite/redirect with i18n
  • b93034d: Fix issues with revalidateTag/revalidatePath
  • 59ff2ee: support next.config.ts. Thanks @aryasaatvik
opennextjs-aws - v3.0.7

Published by github-actions[bot] 3 months ago

Changes

  • 1a1441c: Add missing method from NextResponse for next 12
  • b8ffa3a: add check for config and config.default Thanks @sommeeeer
  • ab0f8b2: [windows] Add Windows compatibility for the resolve ESBuild plugin. Thanks @costinsin
  • 7beaf82: [windows] Add Windows compatibility for the replacement ESBuild plugin. Thanks @costinsin
  • e2d0c7f: [windows] Specify the file:// protocol when importing config on Windows. Thanks @costinsin
opennextjs-aws - v3.0.6 Latest Release

Published by github-actions[bot] 4 months ago

Changes

  • 208f7ba: Fix incorrect redirects to external domains. Thanks @JanStevens
  • 7931bee: fix 404 handling with i18n routes. Thanks @JanStevens
  • 579f9eb: Better support for cloudflare external middleware
  • 9285014: Implement missing methods from response object to fix the middleware issue in next 14.4.12 or lower. Thanks @vladiulianbogdan
  • 3a0bc84: Fix middleware rewrite for page router json data. Thanks @vladiulianbogdan
  • e4c7b6f: Check if value header is undefined to avoid crash. Thanks @vladiulianbogdan
opennextjs-aws - v3.0.5

Published by github-actions[bot] 4 months ago

Changes

  • 8f1d2b4: Fix: dangling promises
opennextjs-aws - v3.0.4

Published by github-actions[bot] 4 months ago

Changes

  • 5fc48d0: Fix some cache issue

Fixes

  • S3 cache NoSuchKey and AccessDenied error logs are now only in debug ( These are expected errors )
  • Fix issues with dynamodb-lite, s3-lite and sqs-lite that were using the next patched version of fetch
  • Fix an issue where the cache could be not properly persisted in some edge cases

For more info see #444

opennextjs-aws - v3.0.3

Published by github-actions[bot] 4 months ago

Changes

  • 71b3347: fix: look for required-server-files.json in outputPath. Thanks @MaksymKupko
  • 1524dd3: Perf: Add some new cache and queue options. Also fix an error being logged for S3 NoSuchKey
  • bc26e9a: Fix for readonly headers lambda@edge
  • 6032493: Fix for lambda streaming on empty body
  • 22e80d7: Fix env file not being copied in V3
  • a46d3fc: Fix 404 when no route match at all
  • 3ff4909: Fix incorrect filter logic when copying traced files Thanks @vladiulianbogdan

New Cache and queue options

This releases introduces some new cache and queue options that uses aws4fetch instead of the aws sdk. This can results in up to 300ms less cold start. Here is how to use it in your open-next.config.ts file :

import type { OpenNextConfig } from 'open-next/types/open-next'
const config = {
  default: { 
    override: { 
      tagCache: 'dynamodb-lite',
      incrementalCache: 's3-lite',
      queue: 'sqs-lite'
    },
  },
} satisfies OpenNextConfig
 
export default config;

Fix for lambda streaming with empty body

On some aws accounts the response can hang if the body is empty. This releases includes an env variable that will force write to the stream if the stream is empty. Only uses this if you have this issue with your account and region

To enable this you should set the OPEN_NEXT_FORCE_NON_EMPTY_RESPONSE environment variable to "true"

opennextjs-aws - v3.0.2

Published by github-actions[bot] 5 months ago

Changes

  • 61066fe: Fix polyfill for crypto in the middleware
  • f83d636: Add support for 'deno' server functions
  • 1b3c6fe: Fix static 404 and 500 in page router
  • e98e014: Improve custom config support
  • b3966d2: Fix duplicate cookies
opennextjs-aws - v3.0.1

Published by github-actions[bot] 5 months ago

Changes

  • ff36f10: Fix next rewrites
  • d5efc43: Fix next version check
  • c2817fe: Handle partial failure in ISR revalidation
  • 3b004dd: Fix for external middleware
opennextjs-aws - v3.0.0

Published by github-actions[bot] 6 months ago

🎉 OpenNext V3 is out 🎉

This is the V3 of OpenNext. It includes some breaking changes and cannot be used as a drop-in replacement for V2. If your IAC is using OpenNext V2, you will need to update it to use V3.

If you are using OpenNext V2, please refer to the migration guide to upgrade to V3.

New Features

  • Add support for function splitting
  • Add support for external middleware
  • Custom config file support : open-next.config.ts
  • Support for other deployment targets than lambda (Node.js, Docker and partial support for Cloudflare Workers)
  • Allow for customizing the outputs bundle :
    • Wrapper
    • Converter
    • Incremental Cache (Fetch cache and HTML/JSON/RSC cache)
    • Tag Cache
    • Queue (Used to trigger ISR revalidation)
    • Origin Resolver (Only for external middleware)
    • Image Loader (Only for image optimization)
    • Invoke function (For the warmer function)
    • Create an open-next.output.json file for easier integration with IAC tools

Breaking Changes

  • Edge runtime don't work out of the box anymore. You need to deploy them on a separate function see the config for more info
  • Output directory structure has changed to support function splitting
  • Removed build arguments in favor of open-next.config.ts

Internal Changes

  • Use OpenNextNodeResponse instead of ServerResponse (It uses transform stream to properly handle the stream)
  • Big refactor of the codebase to support function splitting
  • Added new plugins to support the new features and make the codebase more modular

Changes

  • b191ba3: OpenNext V3
opennextjs-aws - v2.3.9

Published by github-actions[bot] 7 months ago

Changes

  • 5c80192: Fix incorrect 200 with wrong buildId for page router
  • 2118ba2: Feat add a static etag for Image Optimization
  • 6a3c69a: fix(edge): remove read-only and blacklisted headers from cloudfront response
opennextjs-aws - v2.3.8

Published by github-actions[bot] 7 months ago

Changes

  • 8cfb801: fix(open-next): parse cookies when converting response to cloudfront
opennextjs-aws - v2.3.7

Published by github-actions[bot] 8 months ago

Changes

  • 3235392: fix: prevent duplication of location header
  • af2d3ce: Fix Image Optimization Support for [email protected]
opennextjs-aws - v2.3.6

Published by github-actions[bot] 8 months ago

Changes

opennextjs-aws - v2.3.5

Published by github-actions[bot] 9 months ago

Changes

  • b9eefca: Fix Cache Support for [email protected]
  • c80f1be: Fix trailing slash redirect to external domain
  • 186e28f: fix(open-next): correctly set cache control for html pages
opennextjs-aws - v2.3.4

Published by github-actions[bot] 10 months ago

Changes

  • e773e67: try to match errors, fallback to raw key/value pair
  • 83b0838: add support for bun lockfile
  • bbf9b30: use dynamic import handler for monorepo entrypoint
  • fd90b26: Changes encoding on cache.body for binary data
opennextjs-aws - v2.3.3

Published by github-actions[bot] 11 months ago

Changes

  • abeb9cd: Setting the right tag values for fetch cache (#304); Fix getHeader crash external rewrites (#321); Added --package-json option to specify package json path (#322); Change querystring format for multi value parameters (#320);Fix tags cache (#317);Fix skip trailing slash redirect (#323)
Related Projects