mirror of
https://github.com/learnhouse/docs.git
synced 2026-02-18 00:07:39 +01:00
* Update index.mdx * Update s3.mdx * Update organization-hosting-modes.mdx * Update vercel.mdx * Update trail.mdx * Update trail.mdx * Update vercel.mdx * Rename vercel.mdx to vercel.txt * Update vercel.txt * Create vercel.mdx * Update _meta.json * Update organization-hosting-modes.mdx * Update pages/features/trail.mdx Co-authored-by: Badr B. <bdswve@gmail.com> * Update pages/features/trail.mdx Co-authored-by: Badr B. <bdswve@gmail.com> * Update vercel.mdx * Update index.mdx --------- Co-authored-by: Badr B. <bdswve@gmail.com>
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
import { Callout } from 'nextra-theme-docs'
|
|
import { Steps } from 'nextra-theme-docs'
|
|
|
|
# Using Vercel as Frontend
|
|
|
|
<Callout type="warning" >
|
|
This is a draft - it should not be published without core team approval.
|
|
</Callout>
|
|
<br>
|
|
|
|
<Callout type="info" >
|
|
It's important to note that you can't use Vercel for frontend & backend. Vercel is only hosting the frontend.
|
|
</Callout>
|
|
|
|
<Steps>
|
|
|
|
### Deploy to Vercel
|
|
|
|
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flearnhouse%2Flearnhouse)
|
|
Create or log into your Vercel account and clone the repository automatically by clicking on this button.
|
|
|
|
### Add Environmental Variables
|
|
|
|
In Vercel project settings go to `Settings > Environmental Variables` and paste this .env file into any textbox.
|
|
|
|
```env filename="settings/environmental variables" {1-2}
|
|
NEXT_PUBLIC_LEARNHOUSE_MULTI_ORG=false
|
|
NEXT_PUBLIC_LEARNHOUSE_DEFAULT_ORG=defaultorg
|
|
```
|
|
|
|
<Callout type="warning">
|
|
You must have a backend to work with the frontend. Vercel will not and can not run the backend of this project.
|
|
</Callout>
|