docs(deployment): fix base tag subfolder example (#3296)
The sample url for production server is "http://www.mysite.com/mysrc/app/" but the identified subfolder is "my/app", which doesn't match.
This commit is contained in:
parent
d954c263ca
commit
e58ba502f2
|
@ -316,7 +316,7 @@ a#base-tag
|
||||||
That's the root folder and you'd add `<base href="/">` near the top of `index.html` because `/` is the root of the app.
|
That's the root folder and you'd add `<base href="/">` near the top of `index.html` because `/` is the root of the app.
|
||||||
|
|
||||||
But on the shared or production server, you might serve the app from a subfolder.
|
But on the shared or production server, you might serve the app from a subfolder.
|
||||||
For example, when the URL to load the app is something like `http://www.mysite.com/mysrc/app/`,
|
For example, when the URL to load the app is something like `http://www.mysite.com/my/app/`,
|
||||||
the subfolder is `my/app/` and you should add `<base href="/my/app/">` to the server version of the `index.html`.
|
the subfolder is `my/app/` and you should add `<base href="/my/app/">` to the server version of the `index.html`.
|
||||||
|
|
||||||
When the `base` tag is misconfigured, the app fails to load and the browser console displays `404 - Not Found` errors
|
When the `base` tag is misconfigured, the app fails to load and the browser console displays `404 - Not Found` errors
|
||||||
|
|
Loading…
Reference in New Issue