[site,storybook,seo][xs]: fix duplicate user canonical issues -- refs #957
This commit is contained in:
3
packages/components/.storybook/robots.txt
Normal file
3
packages/components/.storybook/robots.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
User-agent: *
|
||||||
|
Allow: /$
|
||||||
|
Disallow: /
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
"build": "tsc && vite build && npm run build-tailwind && npm run fix-leaflet",
|
"build": "tsc && vite build && npm run build-tailwind && npm run fix-leaflet",
|
||||||
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
||||||
"storybook": "storybook dev -p 6006",
|
"storybook": "storybook dev -p 6006",
|
||||||
"build-storybook": "storybook build",
|
"build-storybook": "storybook build && cp ./.storybook/robots.txt ./storybook-static",
|
||||||
"build-tailwind": "NODE_ENV=production npx tailwindcss --postcss -c tailwind.config.js -i src/index.css -o ./dist/style.css --minify",
|
"build-tailwind": "NODE_ENV=production npx tailwindcss --postcss -c tailwind.config.js -i src/index.css -o ./dist/style.css --minify",
|
||||||
"prepare": "npm run build",
|
"prepare": "npm run build",
|
||||||
"fix-leaflet": "node ./scripts/fix-leaflet.cjs"
|
"fix-leaflet": "node ./scripts/fix-leaflet.cjs"
|
||||||
|
|||||||
@@ -2,4 +2,10 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
siteUrl: process.env.SITE_URL || 'https://portaljs.org',
|
siteUrl: process.env.SITE_URL || 'https://portaljs.org',
|
||||||
generateRobotsTxt: true,
|
generateRobotsTxt: true,
|
||||||
}
|
robotsTxtOptions: {
|
||||||
|
policies: [
|
||||||
|
{ userAgent: '*', disallow: '/people' },
|
||||||
|
{ userAgent: '*', disallow: '/?amp=1' },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user