Tugboat QA
Tugboat is a great option for scaling preview environments across your organization's tech stacks.
NextJS App on Tugboat QA
.tugboat/config.yml
services:
node:
image: tugboatqa/node:14
expose: 3000
commands:
build:
# We're already in the correct directory, so we can run npm install.
- npm install
# Run the NextJS production build.
- npm run build
start:
# Need to add the & at the end, to prevent tugboat qa from hanging
- npm start &
# Wait until the app is responding before Tugboat posts a link to the preview
- wget -O /dev/null -o /dev/null -t 240 --retry-connrefused localhost:3000