Skip to content

Commit

Permalink
feat: adding next-sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
kempsterrrr committed Mar 5, 2024
1 parent b12abc3 commit 01f7a12
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
engine-strict=true
public-hoist-pattern[]=@prisma/*
public-hoist-pattern[]=prisma
public-hoist-pattern[]=prisma
enable-pre-post-scripts=true
1 change: 1 addition & 0 deletions apps/academy/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enable-pre-post-scripts=true
6 changes: 6 additions & 0 deletions apps/academy/next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** @type {import('next-sitemap').IConfig} */
module.exports = {
siteUrl: process.env.SITE_URL || "https://example.com",
generateRobotsTxt: true, // (optional)
// ...other options
};
2 changes: 2 additions & 0 deletions apps/academy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"clean": "rm -rf .lighthouseci .next .swc .turbo coverage dist e2e-report e2e-results out storybook-static node_modules analyze",
"dev": "next dev --port 3000",
"build": "next build",
"postbuild": "next-sitemap",
"lint": "next lint",
"test:e2e": "playwright test",
"test:unit": "jest --ci --coverage",
Expand All @@ -31,6 +32,7 @@
"next": "13.4.12",
"next-auth": "^4.23.1",
"next-seo": "^6.1.0",
"next-sitemap": "^4.2.3",
"next-themes": "0.2.1",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
21 changes: 21 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 01f7a12

Please sign in to comment.