feat: implement vercel redirect

This commit is contained in:
Rotimi Best
2023-11-26 00:40:25 +00:00
parent e5caf17582
commit aa42238bf9
4 changed files with 18 additions and 1 deletions
+2 -1
View File
@@ -7,7 +7,8 @@
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch"
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch",
"prepare": "svelte-kit sync"
},
"devDependencies": {
"@melt-ui/pp": "^0.1.2",
+11
View File
@@ -0,0 +1,11 @@
{
"rewrites": [
{"source": "/docs/", "destination": "https://ciodocs.vercel.app/"},
{"source": "/demo/", "destination": "https://cal.com/classroomio/demo/"},
{"source": "/discord/", "destination": "https://discord.gg/NJqaZNuD/"},
{"source": "/github/", "destination": "https://github.com/rotimi-best/classroomio/"},
{"source": "/privacy/", "destination": "https://app.enzuzo.com/policies/privacy/958fc978-5477-11ee-a03b-7b111830c594/"},
{"source": "/tos/", "destination": "https://app.enzuzo.com/policies/tos/958fc978-5477-11ee-a03b-7b111830c594/"},
{"source": "/blog/", "destination": "https://classroomio.substack.com/"}
]
}
+1
View File
@@ -4,6 +4,7 @@
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev",
"prepare": "turbo run prepare",
"lint": "turbo run lint",
"clean": "turbo clean && rm -rf node_modules",
"format": "prettier . --write"
+4
View File
@@ -13,6 +13,10 @@
"cache": false,
"persistent": true
},
"prepare": {
"dependsOn": ["^build"],
"persistent": true
},
"clean": { "cache": false },
"db:generate": { "cache": false },
"db:push": { "cache": false },