https://github.com/pawankumar-dev/nextwebsite
Next.js website project
https://github.com/pawankumar-dev/nextwebsite
Last synced: 30 days ago
JSON representation
Next.js website project
- Host: GitHub
- URL: https://github.com/pawankumar-dev/nextwebsite
- Owner: PawanKumar-Dev
- Created: 2024-08-06T11:53:55.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-07T05:44:25.000Z (9 months ago)
- Last Synced: 2025-02-08T01:52:51.967Z (3 months ago)
- Language: JavaScript
- Homepage: https://nextwebsite-i72lnyxun-pawans-projects-1496a11e.vercel.app/
- Size: 49.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
## Getting Started
First, run the development server:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `app/page.js`. The page auto-updates as you edit the file.
## Deploy on Vercel
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
## If your dynamic page not updating (e.g. movie page)
Since movie page use api, it is counted as dynamic page. But when uploading this on vercel if don't add a line of code our page count as static page. Hence our api will not update data.
export const dynamic = 'force-dynamic';
export async function POST(request, response) {
...
}Check this StackOverflow for understanding: https://stackoverflow.com/questions/76356803/data-not-updating-when-deployed-nextjs13-app-on-vercel-despite-using-cache-no
## If Contact Us form not working
Make sure your mongodb atlas cluster all access to ip of Vercel app. Otherwise 504 error will come.