-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
24 lines (20 loc) · 844 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
################################################################################
# SCRIPTS TO BUILD THE ARTIFACTS
# Santiago Garcia Arango Website (Portfolio)
################################################################################
# function to print headers
function headline(){
echo ""
echo "------------------------------------------------------------------------------"
echo "$1"
echo "------------------------------------------------------------------------------"
}
# ------------------------- BUILDING ASSETS -------------------------
headline "Building NextJS Static Files..."
# Move to "src" folder (where the NextJS app is hosted)
cd ./src || exit
echo "Building assets from nextjs app on $(pwd)"
# Generate NextJS static files ("out" dir) for hosting in S3 bucket
npm ci
npm run build-export