feat: deploy to cloudflare (#365)
* chore: deploy to cf * add wrangler.toml file * update pnpm-lock * set pnpm version * use adapter auto
This commit is contained in:
@@ -30,9 +30,6 @@ const mdsvexOptions = {
|
||||
|
||||
const config = {
|
||||
kit: {
|
||||
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
|
||||
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
|
||||
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
|
||||
adapter: adapter()
|
||||
},
|
||||
extensions: ['.svelte', '.md'],
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"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,5 +1,4 @@
|
||||
# Supabase setup - Required
|
||||
PUBLIC_SUPABASE_PROJECT_REF=localhost
|
||||
PUBLIC_SUPABASE_URL=http://localhost:54321
|
||||
PUBLIC_SUPABASE_ANON_KEY=
|
||||
PRIVATE_SUPABASE_SERVICE_ROLE=
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { vitePreprocess } from '@sveltejs/kit/vite';
|
||||
import vercelAdapter from '@sveltejs/adapter-vercel';
|
||||
import adapter from '@sveltejs/adapter-auto';
|
||||
import path from 'path';
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
@@ -9,7 +9,7 @@ const config = {
|
||||
preprocess: [vitePreprocess({})],
|
||||
|
||||
kit: {
|
||||
adapter: vercelAdapter(),
|
||||
adapter: adapter(),
|
||||
alias: {
|
||||
$lib: path.resolve('./src/lib'),
|
||||
$mail: path.resolve('./src/mail')
|
||||
|
||||
@@ -97,7 +97,6 @@ Here we will update our email configurations, to prevent supabase from sending c
|
||||
Now with all these set up you need to get update the .env file in `apps/dashboard`. You need to update the following environment variables:
|
||||
|
||||
```bash copy
|
||||
PUBLIC_SUPABASE_PROJECT_REF=
|
||||
PUBLIC_SUPABASE_URL=
|
||||
PUBLIC_SUPABASE_ANON_KEY=
|
||||
PRIVATE_SUPABASE_SERVICE_ROLE=
|
||||
|
||||
Reference in New Issue
Block a user