An open API service indexing awesome lists of open source software.

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

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.