11---
22title : Cloud services
33---
4+ import {Callout } from " nextra/components"
5+
46# Cloud services
57
8+ The frontend of Bracket is powered by Vite and can be simply statically hosted on any cloud
9+ service, such as Vercel or Cloudflare. Vite's [ documentation] ( https://vite.dev/guide/static-deploy )
10+ provides detailed instructions on how to deploy your Vite application.
11+
12+ <Callout type = " info" >
13+ Essentially, the only thing you (or a cloud provider) needs to do is to run ` pnpm run build `
14+ to generate a production build, and then serve the contents of the ` dist ` directory to the internet.
15+ </Callout >
16+
17+ ## Cloudflare
18+
19+ To deploy the frontend to Cloudflare, go to ` Workers & Pages ` and click on ` Import an existing Git repository ` .
20+
21+ Make sure to:
22+ - Select ` React (Vite) ` as framework
23+ - Select the ` frontend ` directory as root directory
24+
25+ ## GitHub Pages
26+
27+ To deploy the frontend to GitHub Pages, follow the steps outlined in
28+ Vite's [ docs] ( https://vite.dev/guide/static-deploy#github-pages ) .
29+
630## Vercel
731
832To deploy the frontend to Vercel, use the following link:
@@ -11,4 +35,16 @@ To deploy the frontend to Vercel, use the following link:
1135https://vercel.com/new/project?template=https://github.com/evroon/bracket
1236```
1337
14- Make sure to select the ` frontend ` directory as root directory, and use Next.js as framework.
38+ Make sure to:
39+ - Select ` Vite ` as framework
40+ - Select the ` frontend ` directory as root directory
41+
42+ This should work. If it fails, Vercel didn't automatically detect the right build settings.
43+ Change the following settings under ` Build and Output settings ` :
44+ - Set the build command to ` pnpm run build `
45+ - Set the install command to ` pnpm install `
46+
47+ ## Other cloud providers
48+
49+ Vite's [ documentation] ( https://vite.dev/guide/static-deploy )
50+ provides detailed instructions on how to deploy your Vite application.
0 commit comments