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
{{ message }}
This repository was archived by the owner on Jul 6, 2023. It is now read-only.
| getUmbracoDataAPI | An URI where plugin will do a POST requests in order to fetch Umbraco Data | - | true |
24
+
| generateUmbracoDataAPI | An URI where plugin will do a POST requests in order to fetch sitemap.xml robots.txt, umbracodata.json to generate files | - | true |
25
+
| site | The name of the website | - | true |
26
+
| trailingSlashRedirect | The value makes a 301 redirection to a non trailing slash URL | false | false |
27
+
| redirects | - | - | false |
28
+
| redirects.enable | If to enable 301 redirects | false | - |
29
+
| redirects.redirectFolderName | Name of the Umbraco Data content type where to find redirects (plugin will check children's `oldUrl`/`newUrl` key pairs) | redirectFolder | - |
30
+
| redirects.rootChildrenUmbracoPath | Path of the children content | SiteData.children | - |
31
+
| redirects.enableInDevelopment | Whenever to do redirects in development mode | false | - |
28
32
29
-
4.Make sure you have all the created components in your pages folder. But if you don't have all the needed components - the plugin will setup the index.vue component for all the missing components routes.
33
+
Make sure you have all the created components in your pages folder. But if you don't have all the needed components - the plugin will setup the index.vue component for all the missing components routes.
30
34
31
35
:warning: Be aware that this module will automatically setup the Vuex storage for your Nuxt project.
32
36
33
-
###2. Possible options of configuring the package inside nuxt.config.js
34
-
```js
35
-
umbracoHeadless: {
36
-
namespace:'String', // Name of the Vuex module where data will be put
37
-
dataFileName:'String', // Name of the Umbraco Data json file
38
-
trailingSlashRedirect:true||false, // true value makes a 301 redirection to a non trailing slash URL,
39
-
prefetch: [] // Array of objects, that will be fetched and saved in your Vuex Store, default []
40
-
}
41
-
```
42
-
Template is below
37
+
Example:
43
38
```js
44
-
umbracoHeadless: {
45
-
namespace:'Umbraco',
46
-
dataFileName:'UmbracoData',
47
-
trailingSlashRedirect:true||false,
48
-
prefetch: [
49
-
{
50
-
fetch: {
51
-
type:'contentType || path',
52
-
53
-
pattern: value, // contentType value if your fetch.type === 'contentType'
54
-
Jpath // Your Component.Jpath if fetch.type === 'path'
55
-
56
-
},
57
-
globalKey:'globalKeyString', // Your Component is available from
58
-
// Vuex store $store.getters['Umbraco/getGlobalDataByKey']('globalKeyString')
59
-
ignore: [
60
-
{
61
-
key: [''], // Array of Component Fields that you need to ignore, their values will be null
62
-
excludeStartLevel:0// Nesting level of your Component Fields you want to ignore, their values will be null
0 commit comments