npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@potatohd/tf-next

v0.1.5

Published

CLI build tool for AWS Next.js Terraform module.

Downloads

8

Readme

Terraform Next.js CLI

Took this from

Command-line interface (CLI) companion tool for Terraform Next.js module for AWS.
It is used for building Next.js apps, deployment and management of deployments.

Changed allowed size of lambda to 500mb

Getting Started

This covers only the CLI part of the tool, for a full step-by-step tutorial please see our examples.

  1. Install the CLI tool

    npm i -g @potatohd/tf-next
  2. Build the project

    tf-next build
  3. Deploy the app

    tf-next deploy --endpoint https://<api-id>.execute-api.<region>.amazonaws.com
    
    > success Deployment package uploaded
    > success Deployment ready
    > Available at: https://1e02d46975338b63651b8587ea6a8475.example.com/

Commands

Build

Basic Usage

To build a Next.js app, run tf-next build from the directory where your next.config.js or package.json is located. The app is then checked out into a temporary folder and build from there. Once the build process is finished, a new folder .next-tf is added to your current working directory. The .next-tf folder contains a deployment package that can be used together with the deploy command to deploy your application.

tf-next build

Extended Usage

The --skipDownload flag can be used to prevent the checkout into a temporary folder (builds in the current working directory instead):

tf-next build --skipDownload

Global Options

The following options can be passed when using the tf-next build command:

  • --skipDownload

Deploy

To publish an previously built Next.js app to the system, run tf-next deploy from the same directory where the build command was executed from.

Basic Usage

tf-next deploy --endpoint <api-endpoint>

Global Options

The following options can be passed when using the tf-next deploy command:

  • --endpoint
  • --profile (also available as --awsProfile)
    AWS profile to use for authenticating against the API endpoint. Uses default profile if not specified.

Deployment

To manage the deployments that are published to the system.

Basic Usage

To show the most recent (25) deployments:

tf-next deployment ls

To remove (delete) an existing deployment from the system:

tf-next deployment rm <deployment-id>

Extended Usage

To delete an existing deployment including all of the aliases that are associated with it.

tf-next deployment rm <deployment-id> --force

Global Options

The following options can be passed when using the tf-next deployment command:

  • --endpoint
  • --profile (also available as --awsProfile)
    AWS profile to use for authenticating against the API endpoint. Uses default profile if not specified.

Alias

To managed the aliases that are deployed to the system

License

Apache-2.0 - see LICENSE for details.