Skip to content

Releases: inkOfPixel/aws-next

v0.1.1

10 Oct 07:33
Compare
Choose a tag to compare
  • Fixed / being interpreted as 404
  • Trying a fix to support Next.js redirect

v0.1.0

22 Sep 10:08
Compare
Choose a tag to compare
  • added support for 404 page

v0.0.5

09 Jul 12:52
Compare
Choose a tag to compare
  • Add automatic version bump

v0.0.4

09 Jul 12:13
Compare
Choose a tag to compare
  • Fix bug on routing

v0.0.3

30 May 09:51
Compare
Choose a tag to compare
  • Fix bug on api handler

v0.0.1

28 May 13:52
Compare
Choose a tag to compare

Install

npm i -g aws-next

Usage

Build your Next.js app (e.g. next build), then navigate to the root of your Next.js project and run:

$ aws-next

This will output the build artifacts under .aws-next folder. The artifacts are meant to be deployed using AWS CDK.

Artifacts

  • s3: contains static assets to be deployed to AWS S3
  • default-lambda: contains the lambda@edge code to handle all page and assets requests
  • api-lambda: contains the lambda@edge code to handle all api requests

Inject environment variables

Lambda@edge does not support environment variables. To overcome this you can bundle your enviroment variables into your Next.js deploy. Alternatively, this CLI injects into process.env custom headers defined from the Cloudfront distribution that starts with X-ENV-.

v0.0.1-beta.3

28 May 12:55
Compare
Choose a tag to compare
v0.0.1-beta.3 Pre-release
Pre-release

Usage

In your Next.js root folder, run:

npx aws-next

v0.0.1-beta.2

28 May 12:27
Compare
Choose a tag to compare
v0.0.1-beta.2 Pre-release
Pre-release

Usage

In your Next.js root folder, run:

npx aws-next

v0.0.1-beta.1

28 May 12:19
Compare
Choose a tag to compare
v0.0.1-beta.1 Pre-release
Pre-release

Usage

In your Next.js root folder, run:

npx aws-next