You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/core/docs/getting-started/theme.md
+39Lines changed: 39 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,45 @@ These two components come from the `vue-lazy-hydration` library and are wrappers
33
33
34
34
If you encounter one of these components, you should refer to the direct **child** component.
35
35
36
+
### Router base property
37
+
38
+
There is an option to set base URL for your store.
39
+
40
+
This can be useful if you need to serve your store as a different context root, from within a bigger Web site.
41
+
42
+
Add following configuration to `nuxt.config.js`
43
+
```javascript
44
+
// nuxt.config.js
45
+
46
+
exportdefault {
47
+
router: {
48
+
base:"/myShop/"
49
+
}
50
+
};
51
+
```
52
+
53
+
:::warning Be careful
54
+
When using base router property you need to wrap all assets relative links in addBasePath(), this will automatically add base path to them and prevent redirects. (example below)
0 commit comments