Adjusted next config
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Shahan Nedadahandeh 2022-12-29 17:07:08 -05:00
parent 16edf28334
commit 38f625b0b1
2 changed files with 5 additions and 0 deletions

View File

@ -9,13 +9,17 @@ trap "rm -rf $DIR" EXIT
pushd $DIR pushd $DIR
echo "hello" echo "hello"
echo $NEXT_PUBLIC_BASE_PATH
git clone file:///srv/git/www/cs-2022-class-profile.git --depth=1 git clone file:///srv/git/www/cs-2022-class-profile.git --depth=1
cd cs-2022-class-profile cd cs-2022-class-profile
export NEXT_PUBLIC_BASE_PATH="/classprofile/2022" export NEXT_PUBLIC_BASE_PATH="/classprofile/2022"
npm install npm install
echo $NEXT_PUBLIC_BASE_PATH
npm run build npm run build
echo $NEXT_PUBLIC_BASE_PATH
npm run export npm run export
echo $NEXT_PUBLIC_BASE_PATH
chgrp -R www out chgrp -R www out
chmod -R g+w out chmod -R g+w out

View File

@ -7,6 +7,7 @@ const nextConfig = {
loader: 'akamai', loader: 'akamai',
path: '', path: '',
}, },
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
} }
module.exports = nextConfig module.exports = nextConfig