This website requires JavaScript.
Explore
Help
Sign In
honeymoose
/
angular-cn
Watch
1
Star
0
Fork
You've already forked angular-cn
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
643766637e
angular-cn
/
aio
/
aio-builds-setup
/
dockerbuild
/
scripts-js
/
lib
/
common
/
constants.ts
4 lines
90 B
TypeScript
Raw
Normal View
History
Unescape
Escape
fix(aio): clean up non-public previews The previous clean-up code for PR directories on the preview server assumed that all directories were named after the PR number. With the changes introduced in #17640 it is possible to have PR directories that do not follow that naming convention (e.g. "non-public" directories). This PR ensures that both public and non-public directories are removed when cleaning up.
2017-06-24 18:40:04 -04:00
// Constants
export
const
HIDDEN_DIR_PREFIX
=
'hidden--'
;
feat(aio): use shorter URLs for previews Use the 7 first characters of the 40-chars long SHAs for shorter/cleaner URLs. The collision probability is extremely low (since all SHAs are further "namespaced" under the corresponding PR). In case of a collision, the second PR will not be deployed, in order to avoid overwriting the original build. (This is a design decision to keep the implementation simple. It can be changed later if necessary.)
2017-06-25 15:13:03 -04:00
export
const
SHORT_SHA_LEN
=
7
;