diff --git a/README.md b/README.md index 98bf59d..4d95aa7 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ _"Kickstart your modern web development journey effortlessly!"_ ![TSWindRush Stack](./assets/ts-windrush.svg) -![Next.js](https://img.shields.io/badge/Next.js-v15.1.4-blue) ![TypeScript](https://img.shields.io/badge/TypeScript-v5.7.3-blue) ![TailwindCSS](https://img.shields.io/badge/TailwindCSS-v3.4.17-green) +![Next.js](https://img.shields.io/badge/Next.js-v15.1.4-blue) ![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftsw-ind-rush-pradeepnguptas-projects.vercel.app%2Fapi%2Fversion&query=typescript&label=TypeScript) ![TailwindCSS](https://img.shields.io/badge/TailwindCSS-v3.4.17-green) --- diff --git a/src/app/api/version/route.tsx b/src/app/api/version/route.tsx index fcbbe85..4555577 100644 --- a/src/app/api/version/route.tsx +++ b/src/app/api/version/route.tsx @@ -3,5 +3,13 @@ import packageJson from '../../../../package.json'; export async function GET() { const typescriptVersion = packageJson.devDependencies.typescript || 'Not Installed'; - return NextResponse.json({ typescript: typescriptVersion.replace('^', '') }); + const nextjsVersion = packageJson.dependencies.next || 'Not Installed'; + const tailwindCSSVersion = packageJson.devDependencies.tailwindcss || 'Not Installed'; + const reactjsVersion = packageJson.dependencies.react || 'Not Installed'; + return NextResponse.json({ + typescript: typescriptVersion.replace('^', ''), + nextjs: nextjsVersion.replace('^', ''), + tailwindCSS: tailwindCSSVersion.replace('^', ''), + reactjs: reactjsVersion.replace('^', ''), + }); }