|
1 | 1 | # @faustwp/core |
2 | 2 |
|
| 3 | +## 3.2.4 |
| 4 | + |
| 5 | +### Patch Changes |
| 6 | + |
| 7 | +- a1fb6dd: chore: security update for packages brace-extension and form-data. |
| 8 | + |
3 | 9 | ## 3.2.3 |
4 | 10 |
|
5 | 11 | ### Patch Changes |
|
38 | 44 | export default function Sitemap() {} |
39 | 45 |
|
40 | 46 | export function getServerSideProps(ctx) { |
41 | | - return getSitemapProps(ctx, { |
42 | | - sitemapIndexPath: '/sitemap_index.xml', // RankMath changes the default sitemap path to this |
43 | | - frontendUrl: process.env.NEXT_PUBLIC_SITE_URL, |
44 | | - sitemapPathsToIgnore: ['/wp-sitemap-users-*'], |
45 | | - }); |
| 47 | + return getSitemapProps(ctx, { |
| 48 | + sitemapIndexPath: '/sitemap_index.xml', // RankMath changes the default sitemap path to this |
| 49 | + frontendUrl: process.env.NEXT_PUBLIC_SITE_URL, |
| 50 | + sitemapPathsToIgnore: ['/wp-sitemap-users-*'], |
| 51 | + }); |
46 | 52 | } |
47 | 53 | ``` |
48 | 54 |
|
|
146 | 152 |
|
147 | 153 | ```jsx |
148 | 154 | <ToolbarItem onKeyDown={handleKeyDown} onClick={handleClick}> |
149 | | - Log Out |
| 155 | + Log Out |
150 | 156 | </ToolbarItem> |
151 | 157 | ``` |
152 | 158 |
|
|
252 | 258 | import { FaustPage } from '@faustwp/core'; |
253 | 259 |
|
254 | 260 | type GetPageData = { |
255 | | - generalSettings: { |
256 | | - title: string; |
257 | | - }; |
| 261 | + generalSettings: { |
| 262 | + title: string; |
| 263 | + }; |
258 | 264 | }; |
259 | 265 |
|
260 | 266 | type PageProps = { |
261 | | - myProp: string; |
| 267 | + myProp: string; |
262 | 268 | }; |
263 | 269 |
|
264 | 270 | const Page: FaustPage<GetPageData, PageProps> = (props) => { |
265 | | - const { myProp, data } = props; |
266 | | - return <></>; |
| 271 | + const { myProp, data } = props; |
| 272 | + return <></>; |
267 | 273 | }; |
268 | 274 | ``` |
269 | 275 |
|
|
332 | 338 | export default function Sitemap() {} |
333 | 339 |
|
334 | 340 | export function getServerSideProps(context) { |
335 | | - return getSitemapProps(context, { |
336 | | - frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var |
337 | | - }); |
| 341 | + return getSitemapProps(context, { |
| 342 | + frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var |
| 343 | + }); |
338 | 344 | } |
339 | 345 | ``` |
340 | 346 |
|
|
364 | 370 | import { FaustHooks, FaustPlugin } from '@faustwp/core'; |
365 | 371 |
|
366 | 372 | export class MyPlugin implements FaustPlugin { |
367 | | - apply(hooks: FaustHooks) {} |
| 373 | + apply(hooks: FaustHooks) {} |
368 | 374 | } |
369 | 375 | ``` |
370 | 376 |
|
|
0 commit comments