mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
Fix/broken rewrites (#3809)
* fix: security rewrite * use env var * chore: add oss rewrite
This commit is contained in:
1 parent
307ec25e99
commit
f0a77e33ae
2 files changed
+26
-9
No files matched your search
+8
-4
@@ -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',
|
||||
|
||||
+18
-5
@@ -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"
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user