File tree Expand file tree Collapse file tree 3 files changed +29
-3
lines changed
Expand file tree Collapse file tree 3 files changed +29
-3
lines changed Original file line number Diff line number Diff line change 1+ NEXT_PUBLIC_BASE_URL =
12NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION =
Original file line number Diff line number Diff line change @@ -33,13 +33,17 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the
3333
3434## Building
3535
36+ Set the correct environment variables in ` .env ` or your CI/CD:
37+
3638``` bash
37- npm run build
39+ cp .env.example .env
3840```
3941
40- ## Deployment
42+ Build:
4143
42- Set the correct environment variables as defined in ` .env.example `
44+ ``` bash
45+ npm run build
46+ ```
4347
4448## Contribution
4549
Original file line number Diff line number Diff line change 1+ import { MetadataRoute } from 'next'
2+
3+ export const revalidate = false
4+
5+ export default function Sitemap ( ) : MetadataRoute . Sitemap {
6+ const baseUrl = process . env . NEXT_PUBLIC_BASE_URL
7+ return [
8+ {
9+ url : `${ baseUrl } /` ,
10+ lastModified : new Date ( ) ,
11+ changeFrequency : 'monthly' ,
12+ priority : 1 ,
13+ } ,
14+ {
15+ url : `${ baseUrl } /quiz` ,
16+ lastModified : new Date ( ) ,
17+ changeFrequency : 'monthly' ,
18+ priority : 0.8 ,
19+ } ,
20+ ]
21+ }
You can’t perform that action at this time.
0 commit comments