Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with access to sitemap.xml #555

Open
zorba0517 opened this issue Apr 1, 2022 · 0 comments
Open

Problem with access to sitemap.xml #555

zorba0517 opened this issue Apr 1, 2022 · 0 comments

Comments

@zorba0517
Copy link

Problem Definition

  • i set up reactSnap in package.json as shown in below.
  • i also set up for generating sitemap automoatically in package.json
  • sitemap is generated well after deploy process finished.

//package.json
{
"name": "",
"author": "",
"version": "",
"private": true,
"scripts": {
"start:dev": "env-cmd -e development react-scripts start",
"start:prod": "env-cmd -e production react-scripts start",
"build": "react-scripts build",
"postbuild": "react-snap ",
"predeploy": "yarn run sitemap",
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "eslint --ext .ts,.tsx ./src",
"lint:fix": "eslint --fix --ext .ts,.tsx ./src",
"sitemap": "babel-node sitemapGenerator.js"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all",
"ie 6-11"
],
"development": [
"last 2 chrome version",
"last 2 firefox version",
"last 2 safari version"
]
},
"dependencies": {
"@emotion/cache": "^11.4.0",
"@emotion/react": "^11.4.1",
...
"worker-loader": "^3.0.8",
"yup": "^0.32.9"
},
"devDependencies": {
"@babel/core": "^7.17.5",
"@babel/eslint-parser": "^7.15.4",
"@babel/node": "^7.16.8",
"@babel/preset-env": "^7.16.7",
...
"prettier": "^2.4.1",
"react-router-sitemap-generator": "^0.0.8",
"react-snap": "^1.23.0"
},
"reactSnap": {
"puppeteerArgs": [
"--no-sandbox",
"--disable-setuid-sandbox"
],
"puppeteerExecutablePath": "/opt/google/chrome/google-chrome",
"include": [
"/",
"/guidelines",
"/dashboard/overview",
"/dashboard/overview/sppb-exams",
"/dashboard/overview/gaitspeed-exams",
...
]
}
}

- but once i tried to access by url directly, i found it reach to html file not sitemap.xml (plz refer to image below)

and also, in google search console says, "Sitemap can be read but Sitemap is HTML~"

스크린샷 2022-04-01 오후 4 15 17

Can i know "what the problem is and how to solve it" ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant