Commit 2370a80c authored by tom's avatar tom

[skip ci] open sprite page on prod environment

parent 9e404c5b
...@@ -54,6 +54,15 @@ module.exports = { ...@@ -54,6 +54,15 @@ module.exports = {
siteUrl, siteUrl,
generateIndexSitemap: false, generateIndexSitemap: false,
generateRobotsTxt: true, generateRobotsTxt: true,
robotsTxtOptions: {
policies: [
{
userAgent: '*',
allow: '/',
disallow: ['/auth/*', '/login', '/sprite', '/account/*', '/api/*', '/node-api/*'],
},
],
},
sourceDir: path.resolve(process.cwd(), '../../../.next'), sourceDir: path.resolve(process.cwd(), '../../../.next'),
outDir: path.resolve(process.cwd(), '../../../public'), outDir: path.resolve(process.cwd(), '../../../public'),
exclude: [ exclude: [
......
...@@ -15,4 +15,4 @@ const Page: NextPage = () => { ...@@ -15,4 +15,4 @@ const Page: NextPage = () => {
export default Page; export default Page;
export { dev as getServerSideProps } from 'nextjs/getServerSideProps'; export { base as getServerSideProps } from 'nextjs/getServerSideProps';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment