Skip to content

Commit

Permalink
feat: workaround for next-sitemap bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCatLady committed Oct 12, 2023
1 parent 380af7d commit d11397d
Show file tree
Hide file tree
Showing 3 changed files with 198 additions and 182 deletions.
16 changes: 16 additions & 0 deletions next-sitemap.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,27 @@
module.exports = {
siteUrl: 'https://fix.tt',
generateRobotsTxt: true,
additionalPaths: async (config) =>
await Promise.all(
['/', '/code-of-conduct', '/cookie-policy'].map(
async (path) => await config.transform(config, path),
),
),
robotsTxtOptions: {
policies: [
process.env.VERCEL_ENV === 'production'
? { userAgent: '*', allow: '/' }
: { userAgent: '*', disallow: '/' },
{
userAgent: '*',
disallow: [
'/*.json$',
'/*_buildManifest.js$',
'/*_middlewareManifest.js$',
'/*_ssgManifest.js$',
'/*.js$',
],
},
],
},
};
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"dependencies": {
"@headlessui/react": "1.7.17",
"@hookform/resolvers": "3.3.1",
"@hookform/resolvers": "3.3.2",
"clsx": "2.0.0",
"graphql": "16.8.1",
"graphql-request": "6.1.0",
Expand All @@ -38,14 +38,14 @@
"@commitlint/config-conventional": "17.7.0",
"@svgr/webpack": "8.1.0",
"@tailwindcss/forms": "0.5.6",
"@types/gtag.js": "0.0.14",
"@types/react": "18.2.25",
"@types/gtag.js": "0.0.16",
"@types/react": "18.2.28",
"@types/react-google-recaptcha": "2.1.6",
"@typescript-eslint/eslint-plugin": "6.7.4",
"@typescript-eslint/parser": "6.7.4",
"@typescript-eslint/eslint-plugin": "6.7.5",
"@typescript-eslint/parser": "6.7.5",
"autoprefixer": "10.4.16",
"encoding": "0.1.13",
"eslint": "8.50.0",
"eslint": "8.51.0",
"eslint-config-next": "13.5.4",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-simple-import-sort": "10.0.0",
Expand Down
Loading

0 comments on commit d11397d

Please sign in to comment.