snort-docker/web-ui/build.sh
2024-08-21 13:53:46 +03:00

11 lines
246 B
Bash

#!/bin/bash
set -e
# Run Next.js build with passed arguments
next build "$@"
# Copy files only if not in a CI environment
if [ -z "$CI" ]; then
cp -r ./public ./.next/standalone/public
cp -r ./.next/static ./.next/standalone/.next/static
fi