diff --git a/www/next.config.js b/www/next.config.js index a300dc59fa8..2fda24a68a2 100644 --- a/www/next.config.js +++ b/www/next.config.js @@ -46,15 +46,19 @@ module.exports = withMDX({ // misc rewrites { source: '/humans.txt', - destination: `/docs/humans.txt`, + destination: `${process.env.NEXT_PUBLIC_DOCS_URL}/humans.txt`, }, { source: '/lawyers.txt', - destination: `/docs/lawyers.txt`, + destination: `${process.env.NEXT_PUBLIC_DOCS_URL}/lawyers.txt`, }, { - source: '/.well-known/security.txt.txt', - destination: `/docs/.well-known/security.txt.txt`, + source: '/.well-known/security.txt', + destination: `${process.env.NEXT_PUBLIC_DOCS_URL}/.well-known/security.txt`, + }, + { + source: '/oss', + destination: `${process.env.NEXT_PUBLIC_DOCS_URL}/oss`, }, { source: '/feed.xml', diff --git a/www/tsconfig.json b/www/tsconfig.json index 7d9337f9e3c..ad933be6bb2 100644 --- a/www/tsconfig.json +++ b/www/tsconfig.json @@ -2,7 +2,9 @@ "compilerOptions": { "baseUrl": ".", "paths": { - "~/*": ["./*"] + "~/*": [ + "./*" + ] }, "target": "es5", "module": "esnext", @@ -11,13 +13,24 @@ "esModuleInterop": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true, - "lib": ["dom", "dom.iterable", "esnext"], + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "allowJs": true, "noEmit": true, "moduleResolution": "node", "resolveJsonModule": true, - "isolatedModules": true + "isolatedModules": true, + "incremental": true }, - "exclude": ["node_modules"], - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"] + "exclude": [ + "node_modules" + ], + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx" + ] }