diff --git a/apps/docs/src/app/environment-variables/page.mdx b/apps/docs/src/app/environment-variables/page.mdx index 053d84d..42d0ef6 100644 --- a/apps/docs/src/app/environment-variables/page.mdx +++ b/apps/docs/src/app/environment-variables/page.mdx @@ -29,6 +29,10 @@ You can quickly copy these randomly generated example variables to your `.env.lo ## Environment Variables {{ anchor: false}} + + The URL of your frontend site.
+ Example: `https://example.com` +
The URL of your WordPress site used to fetch the WP REST API.
Example: `https://example-wordpress.com` diff --git a/apps/docs/src/app/packages/nextwp/core/components/page.mdx b/apps/docs/src/app/packages/nextwp/core/components/page.mdx index 98ef292..9f2e0bf 100644 --- a/apps/docs/src/app/packages/nextwp/core/components/page.mdx +++ b/apps/docs/src/app/packages/nextwp/core/components/page.mdx @@ -73,7 +73,7 @@ const templates = { special: SpecialPostTemplate, }, archive:{ - post: PostArchiveTemplate, + posts: PostArchiveTemplate, // custom post type archive movie: MovieArchiveTemplate, }, diff --git a/apps/docs/src/components/env-code-block.tsx b/apps/docs/src/components/env-code-block.tsx index 9b60eeb..7fbb938 100644 --- a/apps/docs/src/components/env-code-block.tsx +++ b/apps/docs/src/components/env-code-block.tsx @@ -4,7 +4,8 @@ import { Code, CodeGroup, CodeButton } from '@/components/Code' import { useEffect, useState } from 'react' export function EnvCodeBlock() { - const [code, setCode] = useState(`NEXT_PUBLIC_WP_URL= + const [code, setCode] = useState(`NEXT_SITE_URL= +NEXT_PUBLIC_WP_URL= WP_APPLICATION_PASSWORD= NEXT_PREVIEW_SECRET= REVALIDATE_SECRET_KEY=`) @@ -22,7 +23,8 @@ REVALIDATE_SECRET_KEY=`) .map(() => chars[Math.floor(Math.random() * chars.length)]) .join('') - setCode(`NEXT_PUBLIC_WP_URL= + setCode(`NEXT_SITE_URL= +NEXT_PUBLIC_WP_URL= WP_APPLICATION_PASSWORD= NEXT_PREVIEW_SECRET={#string}${NEXT_PREVIEW_SECRET}{#} REVALIDATE_SECRET_KEY={#string}${REVALIDATE_SECRET_KEY}{#}`) @@ -40,7 +42,8 @@ REVALIDATE_SECRET_KEY={#string}${REVALIDATE_SECRET_KEY}{#}`) <> - setCode(`NEXT_PUBLIC_WP_URL= + setCode(`NEXT_SITE_URL= +NEXT_PUBLIC_WP_URL= WP_APPLICATION_PASSWORD= NEXT_PREVIEW_SECRET= REVALIDATE_SECRET_KEY=`)