Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ergoplatform/ergoweb
Browse files Browse the repository at this point in the history
  • Loading branch information
deadit committed Nov 9, 2022
2 parents 9e880b3 + 9c126f8 commit 69e36d2
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 4 deletions.
22 changes: 22 additions & 0 deletions next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const siteUrl = process.env.SITE_URL || 'http://localhost:80';

module.exports = {
siteUrl: siteUrl,
changefreq: 'daily',
priority: 0.7,
sitemapSize: 5000,
generateRobotsTxt: true,
alternateRefs: [
['en', 'es', 'de', 'it', 'pt', 'hu', 'ru', 'cn']
.filter((locale) => locale !== 'default')
.map((locale) => ({ href: `${siteUrl}/${locale}`, hreflang: locale })),
],
robotsTxtOptions: {
policies: [
{
userAgent: '*',
allow: '/',
},
],
},
};
6 changes: 3 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ const nextConfig = {
'en',
'es',
'de',
// 'fr',
// 'hi',
'it',
// 'tr',
'pt',
'hu',
'ru',
'cn',
// 'fr',
// 'hi',
// 'tr',
// 'ro',
// 'sk',
// 'zh',
Expand Down
45 changes: 45 additions & 0 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"extract:i18n": "formatjs extract \"{pages,components,sections}/**/*.{js,ts,tsx}\" --format simple --id-interpolation-pattern '[sha512:contenthash:base64:6]' --out-file content/locales/en.json",
"compile:i18n": "formatjs compile-folder --ast --format simple content/locales content/compiled-locales",
"i18n": "npm run extract:i18n && npm run compile:i18n",
"svgr": "svgr -d components/icons components/icons/svgs"
"svgr": "svgr -d components/icons components/icons/svgs",
"postbuild": "next-sitemap --config next-sitemap.config.js"
},
"dependencies": {
"@headlessui/react": "^1.5.0",
Expand All @@ -24,6 +25,7 @@
"framer-motion": "^6.3.3",
"lodash": "^4.17.21",
"next": "^12.2.5",
"next-sitemap": "^3.1.30",
"next-themes": "^0.0.15",
"nextjs-progressbar": "0.0.14",
"react": "17.0.2",
Expand Down

0 comments on commit 69e36d2

Please sign in to comment.