Skip to content

Commit

Permalink
Add .env Info to README
Browse files Browse the repository at this point in the history
  • Loading branch information
khattakdev committed Jul 23, 2020
1 parent 54c6e17 commit 0bf8608
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions examples/with-sitemap/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# With Sitemap example

This example shows how to generate Sitemap for static [Next.js](https://nextjs.org/) paths.
Everytime, you try to start a development server or make a build, you get an updated `sitemap.xml` file in `public` directory(`http://localhost:3000/sitemap.xml`).
Every time, you try to start a development server or make a build, you get an updated `sitemap.xml` file in the `public` directory(`http://localhost:3000/sitemap.xml`).

**Note**: Everytime you add or remove a page from `pages` directory, you need to restart the server, to update your `pages/sitemap.xml` file.
The website URL can be changed from `.env` file in the project root.

```
# Used to add the domain to sitemap.xml, replace it with a real domain in production
WEBSITE_URL=http://localhost:3000
```

**Note**: Every time you add or remove a page from the `pages` directory, you need to restart the server, to update your `pages/sitemap.xml` file.

## Deploy your own

Expand Down

0 comments on commit 0bf8608

Please sign in to comment.