terraform-aws-next-js icon indicating copy to clipboard operation
terraform-aws-next-js copied to clipboard

tf-next deploy does nothing

Open davhao opened this issue 3 years ago • 4 comments

Having issues deploying my app. Running npx tf-next deploy --endpoint https://<api-id>.execute-api.<region>.amazonaws.com just exits without displaying anything.

davhao avatar Jun 24 '22 01:06 davhao

I think you need to remove npx from the start of your command.

PodStuart avatar Jun 24 '22 07:06 PodStuart

Using npx is fine, however it is necessary to specify the version to use the deploy command: npx tf-next -> npx tf-next@canary. Otherwise it would fallback to the latest regular release (0.13.2) where the tf-next deploy command is not supported.

So using it this way should work:

npx tf-next@canary deploy --endpoint https://<api-id>.execute-api.<region>.amazonaws.com

ofhouse avatar Jun 24 '22 12:06 ofhouse

Using npx is fine, however it is necessary to specify the version to use the deploy command: npx tf-next -> npx tf-next@canary. Otherwise it would fallback to the latest regular release (0.13.2) where the tf-next deploy command is not supported.

This should be specified in the Readme. Also, it should be done with tf-next@canary build

toto1384 avatar Jul 05 '22 05:07 toto1384

Agree that it's currently a rough experience that leads to some confusion while we are in the transition phase 😬 Currently working on a dedicated documentation website where I can place a notice more prominently as it is possible with GitHub Readme.

ofhouse avatar Jul 07 '22 16:07 ofhouse