Adjusted next config
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
16edf28334
commit
38f625b0b1
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue