Create next.config.js if it is missing. (#701)

* Create next.config.js if it is missing.

* Add comment.
This commit is contained in:
Thomas E Lackey 2024-01-15 12:12:59 -06:00 committed by GitHub
parent 4b3ea7c30f
commit 0587813dd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,11 @@ WORK_DIR="${1:-/app}"
cd "${WORK_DIR}" || exit 1
# If this file doesn't exist at all, we'll get errors below.
if [ ! -f "next.config.js" ]; then
touch next.config.js
fi
if [ ! -f "next.config.dist" ]; then
cp next.config.js next.config.dist
fi