Last active
January 26, 2025 12:39
-
-
Save monaye/dc2ab52636de4dc5c9a24e8adab9b7d9 to your computer and use it in GitHub Desktop.
Astro Build Configuration to retain previous build soft link to dist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // set build output directory with date and soft link dis folder to the latest build date | |
| date=$(date +%Y%m%d%H%M%S) && astro build --outDir build/$date && ln -sfn build/$date dist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment