This commit is contained in:
1 parent
0ea2e400bd
commit
4e58da9a7a
1 file changed
+10
-5
@@ -55,17 +55,22 @@ jobs:
|
|||||||
|
|
||||||
# 6. Sync Standalone Bundle & Overlays
|
# 6. Sync Standalone Bundle & Overlays
|
||||||
echo "Preparing standalone bundle paths..."
|
echo "Preparing standalone bundle paths..."
|
||||||
cp -r public .next/standalone/
|
|
||||||
|
# Zorg voor een schone basis
|
||||||
|
mkdir -p .next/standalone/public
|
||||||
|
cp -r public/* .next/standalone/public/ 2>/dev/null || true
|
||||||
cp -r .next/static .next/standalone/.next/
|
cp -r .next/static .next/standalone/.next/
|
||||||
cp -r node_modules/@prisma .next/standalone/node_modules/ 2>/dev/null || true
|
cp -r node_modules/@prisma .next/standalone/node_modules/ 2>/dev/null || true
|
||||||
cp .env .next/standalone/.env
|
cp .env .next/standalone/.env
|
||||||
|
|
||||||
# AANPASSING: Overlay dynamische assets (logo's/favicons) over de public map heen
|
# AANPASSING: Overlay dynamische assets (logo's/favicons) vanuit de veilige bron
|
||||||
if [ "$(ls -A /var/www/atom-media/public_assets)" ]; then
|
# --delete zorgt ervoor dat oude logo's die je uit de bronmap hebt verwijderd,
|
||||||
cp -r /var/www/atom-media/public_assets/* .next/standalone/public/
|
# ook echt van de website verdwijnen.
|
||||||
|
if [ -d /var/www/atom-media/public_assets ]; then
|
||||||
|
rsync -av --delete /var/www/atom-media/public_assets/ .next/standalone/public/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Symlinks voor uploads
|
# Symlinks voor uploads (altijd verwijzen naar de veilige bron)
|
||||||
rm -rf .next/standalone/public/uploads .next/standalone/public/imaging
|
rm -rf .next/standalone/public/uploads .next/standalone/public/imaging
|
||||||
ln -sfn /var/www/atom-media/uploads .next/standalone/public/uploads
|
ln -sfn /var/www/atom-media/uploads .next/standalone/public/uploads
|
||||||
ln -sfn /var/www/atom-media/imaging .next/standalone/public/imaging
|
ln -sfn /var/www/atom-media/imaging .next/standalone/public/imaging
|
||||||
|
|||||||
Reference in new issue
Block a user