Skip to content

Commit 2a9dd7b

Browse files
clydinfilipesilva
authored andcommitted
docs: add deploy URL and base HREF comparison
1 parent f1fcd45 commit 2a9dd7b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/design/deployurl-basehref.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
| | Deploy URL | Base HREF |
2+
|--|:--:|:--:|
3+
| Initial scripts (index.html) | ✅ 👍 | ✅ 👍 |
4+
| Initial stylesheets (index.html) | ✅ 👍 | ✅ 👍 |
5+
| Lazy scripts (routes/import()/etc.) | ✅ 👍 | ✅ 👍 |
6+
| Processed CSS resources (images/fonts/etc.) | ✅ 👍 | ✅ 👍 |
7+
| Relative template (HTML) assets | ❌ 👎 | ✅ 👍 |
8+
| Angular Router Default Base (APP_BASE_HREF) ||*1 |
9+
| Single reference in deployed Application | ❌ 👎 | ✅ 👍 |
10+
| Special resource logic within CLI | ✅ 👎 | ❌ 👍 |
11+
| Relative fetch/XMLHttpRequest |||
12+
13+
✅ - has/affects the item/trait
14+
❌ - does not have/affect the item/trait
15+
👍 - favorable behavior
16+
👎 - unfavorable behavior
17+
18+
*1 -- Users with more complicated setups may need to manually configure the `APP_BASE_HREF` token within the application. (e.g., application routing base is `/` but assets/scripts/etc. are at `/assets/`)

0 commit comments

Comments
 (0)