fix(seo): revert some Google tweaking (#15658)
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Habitica - FAQ</title>
|
||||
<meta name="description" content="Frequently Asked Questions about Habitica, the gamified task manager.">
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed:400,400i,700,700i|Roboto:400,400i,700,700i" rel="stylesheet">
|
||||
<link rel="shortcut icon" sizes="48x48" href="/static/icons/favicon.ico">
|
||||
<link rel="shortcut icon" sizes="192x192" href="/static/icons/favicon_192x192.png">
|
||||
<link rel="mask-icon" href="/static/icons/favicon.ico">
|
||||
<meta property="og:image" content="/static/emails/images/meta-image.png" />
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="text/javascript" src="//cloudfront.loggly.com/js/loggly.tracker-latest.min.js" async></script>
|
||||
<!-- Translations -->
|
||||
<script type='text/javascript' src='/api/v4/i18n/core' vite-ignore></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -121,10 +121,6 @@ export default defineConfig({
|
||||
include: [/moment-recur/, /node_modules/]
|
||||
},
|
||||
rollupOptions: {
|
||||
input: {
|
||||
main: path.resolve(__dirname, 'index.html'),
|
||||
faq: path.resolve(__dirname, 'index-faq.html'),
|
||||
},
|
||||
output: {
|
||||
experimentalMinChunkSize: 20000
|
||||
}
|
||||
|
||||
@@ -16,15 +16,6 @@ api.getNewClient = {
|
||||
},
|
||||
};
|
||||
|
||||
api.getFAQEntryPoint = {
|
||||
method: 'GET',
|
||||
url: '/static/faq',
|
||||
noLanguage: true,
|
||||
async handler (req, res) {
|
||||
return serveClient(res, 'index-faq.html');
|
||||
},
|
||||
};
|
||||
|
||||
api.robotsTxt = {
|
||||
method: 'GET',
|
||||
url: '/robots.txt',
|
||||
|
||||
@@ -2,6 +2,6 @@ const ROOT = `${__dirname}/../../../`;
|
||||
|
||||
const TEN_MINUTES = 1000 * 60 * 10;
|
||||
|
||||
export function serveClient (expressRes, file = 'index.html') { // eslint-disable-line import/prefer-default-export
|
||||
return expressRes.sendFile(`./website/client/dist/${file}`, { root: ROOT, maxAge: TEN_MINUTES });
|
||||
export function serveClient (expressRes) { // eslint-disable-line import/prefer-default-export
|
||||
return expressRes.sendFile('./website/client/dist/index.html', { root: ROOT, maxAge: TEN_MINUTES });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user