This commit is contained in:
1 parent
7eca691534
commit
91a0f728b7
1 file changed
+6
-8
@@ -53,24 +53,22 @@ jobs:
|
||||
# 5. Build
|
||||
pnpm build
|
||||
|
||||
# 6. Sync Standalone Bundle (Symlink-only methode)
|
||||
# 6. Sync Standalone Bundle & Overlays
|
||||
echo "Preparing standalone bundle paths..."
|
||||
|
||||
# Maak mapstructuur
|
||||
mkdir -p .next/standalone/public
|
||||
|
||||
# Kopieer alleen statische code en build-output
|
||||
# Kopieer de nodige build-bestanden
|
||||
cp -r .next/static .next/standalone/.next/
|
||||
cp -r node_modules/@prisma .next/standalone/node_modules/ 2>/dev/null || true
|
||||
cp .env .next/standalone/.env
|
||||
|
||||
# Kopieer statische bestanden uit je repo (favicon etc), maar niet de mappen die we gaan linken
|
||||
cp -rn public/* .next/standalone/public/ 2>/dev/null || true
|
||||
# Kopieer ALLES uit je public map (inclusief verborgen bestanden en submappen)
|
||||
# De (.) zorgt ervoor dat ook verborgen bestanden (.well-known, etc) mee gaan
|
||||
cp -a public/. .next/standalone/public/
|
||||
|
||||
# Verwijder lokale mappen als ze per ongeluk door cp zijn aangemaakt
|
||||
rm -rf .next/standalone/public/uploads .next/standalone/public/imaging .next/standalone/public/public_assets
|
||||
|
||||
# Leg de symlinks naar de veilige opslagplek (dit wordt NOOIT gewist door de build)
|
||||
# Leg de symlinks naar de veilige opslagplek (deze overschrijven lokale kopieën indien aanwezig)
|
||||
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/public_assets .next/standalone/public/public_assets
|
||||
|
||||
Reference in new issue
Block a user