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
echo "hello"
echo $NEXT_PUBLIC_BASE_PATH
git clone file:///srv/git/www/cs-2022-class-profile.git --depth=1
cd cs-2022-class-profile
export NEXT_PUBLIC_BASE_PATH="/classprofile/2022"
npm install
echo $NEXT_PUBLIC_BASE_PATH
npm run build
echo $NEXT_PUBLIC_BASE_PATH
npm run export
echo $NEXT_PUBLIC_BASE_PATH
chgrp -R www out
chmod -R g+w out

View File

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