Skip to content

Commit

Permalink
Added More Versions + Change Badge URLs in ReadMe
Browse files Browse the repository at this point in the history
  • Loading branch information
pradeepngupta committed Jan 14, 2025
1 parent b651f49 commit 56e17c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

---

Expand Down
10 changes: 9 additions & 1 deletion src/app/api/version/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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('^', ''),
});
}

0 comments on commit 56e17c6

Please sign in to comment.