Sitemap and Robots.txt
npm i next-sitemap
"postbuild": "next-sitemap"
Create a next-sitemap.js file in the project root, example:
module.exports = {
siteUrl: process.env.NEXT_PUBLIC_LIVE_URL,
generateRobotsTxt: true,
robotsTxtOptions: {
policies: [
{
userAgent: "*",
disallow: "/",
},
],
},
};
Generate Token
mutation LoginUser {
login(
input: {
clientMutationId: "uniqueId"
username: "USERNAME"
password: "PASSWORD"
}
) {
user {
id
name
}
refreshToken
}
}