File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -88,17 +88,16 @@ const config = buildConfig({
88
88
// ...
89
89
livePreview: {
90
90
// highlight-start
91
- url : ({
92
- data ,
93
- collectionConfig ,
94
- locale
95
- }) => ` ${data .tenant .url }${ // Multi-tenant top-level domain
96
- collectionConfig .slug === ' posts' ? ` /posts/${data .slug } ` : ` ${data .slug !== ' home' : ` /${data .slug } ` : ' ' } `
97
- }${locale ? ` ?locale=${locale ?.code } ` : ' ' } ` , // Localization query param
91
+ url : ({ data , collectionConfig , locale }) =>
92
+ ` ${data .tenant .url }${
93
+ collectionConfig .slug === ' posts'
94
+ ? ` /posts/${data .slug } `
95
+ : ` ${data .slug !== ' home' ? ` /${data .slug } ` : ' ' } `
96
+ }${locale ? ` ?locale=${locale ?.code } ` : ' ' } ` , // Localization query param
98
97
collections: [' pages' ],
99
98
},
100
99
// highlight-end
101
- }
100
+ },
102
101
})
103
102
```
104
103
You can’t perform that action at this time.
0 commit comments