SEO: how to ensure admin ui is not indexed in google? #8985
-
Our admin ui is on a subdomain but I want to make sure a random people won't find it in google |
Beta Was this translation helpful? Give feedback.
Answered by
iamandrewluca
Jan 12, 2024
Replies: 1 comment 1 reply
-
Hey, @pnodet! The simple way is to use First, create public/robots.txt
Then add keystone.ts // ...
import express from 'express';
export default withAuth(
config({
// ...
server: {
extendExpressApp(app) {
app.use(express.static('public'))
// ^ this line serves everything from `public` folder
},
}
})
); The other way is to configure local storage, but it's much tricky |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
pnodet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, @pnodet! The simple way is to use
extendExpressApp
and useexpress.static
middlewareFirst, create
public
folder in your project, and add arobots.txt
file in there. You should havepublic/robots.txt
with below content:public/robots.txt
Then add
express.static
middleware to server everything from that folder.keystone.ts
The other way is to configure local storage, but it's much tricky