From b8de05911355388e954fec5bf04f49f80c800373 Mon Sep 17 00:00:00 2001 From: Aadarsha Acharya Date: Mon, 29 Apr 2024 08:47:25 +0545 Subject: [PATCH] style: blogs section --- src/app/blog/page.tsx | 2 +- src/app/page.tsx | 2 +- src/components/blog-card.tsx | 2 +- src/content/format-nestjs-response.mdx | 3 +-- tsconfig.json | 1 + 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/blog/page.tsx b/src/app/blog/page.tsx index 4f931f7..748459a 100644 --- a/src/app/blog/page.tsx +++ b/src/app/blog/page.tsx @@ -24,7 +24,7 @@ export default function Blog() { {blogs.map((blog) => (
  • diff --git a/src/app/page.tsx b/src/app/page.tsx index cf98607..41b086a 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -84,7 +84,7 @@ export default function Home() {

    Recent Posts

      {blogs.map((blog) => ( -
    • +
    • diff --git a/src/components/blog-card.tsx b/src/components/blog-card.tsx index 36f8982..044cdb7 100644 --- a/src/components/blog-card.tsx +++ b/src/components/blog-card.tsx @@ -18,7 +18,7 @@ export function BlogCard({ blog }: { blog: BlogCardProps }) { -

      +

      {blog.title}

      diff --git a/src/content/format-nestjs-response.mdx b/src/content/format-nestjs-response.mdx index dc4bac5..55e3142 100644 --- a/src/content/format-nestjs-response.mdx +++ b/src/content/format-nestjs-response.mdx @@ -1,11 +1,10 @@ --- title: "Format Nest.js Response using Interceptors" -summary: "Learn how to format Nest.js response and make standard response for every api response using Interceptors." +summary: "Learn how to format and make the standardarized response in Nest.js using Interceptors." type: Blog publishedAt: 2024-04-28 --- -In this article we will learn how to format the response in Nest.js using Interceptors. Normally when we try to return a response from a controller, we return the response as it is. But sometimes we need to format the response before sending it to the client. For example, we may need to add some metadata to the response, or we may need to modify the response structure. diff --git a/tsconfig.json b/tsconfig.json index 3c76e26..cf7fed2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "baseUrl": ".", "target": "es5", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true,