fix: force-dynamic rendering on content pages — engine может отвечать с задержкой
This commit is contained in:
@@ -6,7 +6,7 @@ import { getArticle } from '@/lib/engine';
|
|||||||
import { renderMarkdown, formatDate } from '@/lib/markdown';
|
import { renderMarkdown, formatDate } from '@/lib/markdown';
|
||||||
import { Clock, ArrowLeft } from 'lucide-react';
|
import { Clock, ArrowLeft } from 'lucide-react';
|
||||||
|
|
||||||
export const revalidate = 60;
|
export const dynamic = 'force-dynamic';
|
||||||
|
|
||||||
export async function generateMetadata({ params }) {
|
export async function generateMetadata({ params }) {
|
||||||
const { slug } = await params;
|
const { slug } = await params;
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ import ArticleCard from '@/components/ArticleCard';
|
|||||||
import { listArticles, listTags } from '@/lib/engine';
|
import { listArticles, listTags } from '@/lib/engine';
|
||||||
import { Sparkles, ArrowRight } from 'lucide-react';
|
import { Sparkles, ArrowRight } from 'lucide-react';
|
||||||
|
|
||||||
export const revalidate = 60;
|
export const dynamic = 'force-dynamic';
|
||||||
|
|
||||||
export default async function HomePage() {
|
export default async function HomePage() {
|
||||||
let articles = [];
|
let articles = [];
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import ArticleCard from '@/components/ArticleCard';
|
|||||||
import { listArticles } from '@/lib/engine';
|
import { listArticles } from '@/lib/engine';
|
||||||
import { ArrowLeft } from 'lucide-react';
|
import { ArrowLeft } from 'lucide-react';
|
||||||
|
|
||||||
export const revalidate = 60;
|
export const dynamic = 'force-dynamic';
|
||||||
|
|
||||||
export async function generateMetadata({ params }) {
|
export async function generateMetadata({ params }) {
|
||||||
const { name } = await params;
|
const { name } = await params;
|
||||||
|
|||||||
Reference in New Issue
Block a user