File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 7575 cp -rL .next/static deployment/.next/static || true
7676
7777 cd deployment
78- # Compress node_modules to tar.gz to force Azure to use our fresh dependencies and overwrite any stale artifacts
79- tar -czf node_modules.tar.gz node_modules
78+ # Compress node_modules to tar.gz (flat archive)
79+ # We cd into node_modules so the tarball doesn't contain the 'node_modules' folder itself, but just its contents.
80+ # Azure extracts this into /node_modules, so we want the contents directly there.
81+ cd node_modules && tar -czf ../node_modules.tar.gz . && cd ..
8082 rm -rf node_modules
8183
8284 zip -r ../release.zip .
Original file line number Diff line number Diff line change 7676 cp -rL .next/static deployment/.next/static || true
7777
7878 cd deployment
79- # Compress node_modules to tar.gz to force Azure to use our fresh dependencies and overwrite any stale artifacts
80- tar -czf node_modules.tar.gz node_modules
79+ # Compress node_modules to tar.gz (flat archive)
80+ # We cd into node_modules so the tarball doesn't contain the 'node_modules' folder itself, but just its contents.
81+ # Azure extracts this into /node_modules, so we want the contents directly there.
82+ cd node_modules && tar -czf ../node_modules.tar.gz . && cd ..
8183 rm -rf node_modules
8284
8385 zip -r ../release.zip .
You can’t perform that action at this time.
0 commit comments