| 
									
										
										
										
											2023-10-02 17:22:22 +08:00
										 |  |  | # Initial Setup | 
					
						
							| 
									
										
										
										
											2023-11-05 14:00:24 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-02 17:22:22 +08:00
										 |  |  | # 1. Copy the dev.env file to .env: | 
					
						
							| 
									
										
										
										
											2023-11-05 14:00:24 +08:00
										 |  |  | #   cp dev.env .env     | 
					
						
							|  |  |  | # Update the environment parameters as needed. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # 2. Generate the env.dart from this .env file: | 
					
						
							|  |  |  | # You can use the "Generate Env File" task in VSCode. | 
					
						
							|  |  |  | # Alternatively, execute the following commands: | 
					
						
							|  |  |  | #   cd appflowy_flutter | 
					
						
							|  |  |  | #   dart run build_runner clean && dart run build_runner build --delete-conflicting-outputs | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-02 17:22:22 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-05 14:00:24 +08:00
										 |  |  | # Cloud Type Configuration | 
					
						
							|  |  |  | # Use this configuration file to specify the cloud type and its associated settings. The available cloud types are: | 
					
						
							| 
									
										
										
										
											2023-10-07 09:58:44 +08:00
										 |  |  | # Local: 0 | 
					
						
							|  |  |  | # Supabase: 1 | 
					
						
							|  |  |  | # AppFlowy Cloud: 2 | 
					
						
							| 
									
										
										
										
											2023-11-05 14:00:24 +08:00
										 |  |  | # By default, it's set to Local. | 
					
						
							| 
									
										
										
										
											2023-10-07 09:58:44 +08:00
										 |  |  | CLOUD_TYPE=0 | 
					
						
							| 
									
										
										
										
											2023-10-02 17:22:22 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Supabase Configuration | 
					
						
							| 
									
										
										
										
											2023-11-05 14:00:24 +08:00
										 |  |  | # If using Supabase (CLOUD_TYPE=1), provide the following details: | 
					
						
							| 
									
										
										
										
											2023-11-12 18:00:07 +08:00
										 |  |  | SUPABASE_URL= | 
					
						
							|  |  |  | SUPABASE_ANON_KEY= | 
					
						
							| 
									
										
										
										
											2023-10-02 17:22:22 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | # AppFlowy Cloud Configuration | 
					
						
							| 
									
										
										
										
											2023-11-05 14:00:24 +08:00
										 |  |  | # If using AppFlowy Cloud (CLOUD_TYPE=2), provide the following details: | 
					
						
							| 
									
										
										
										
											2023-11-12 18:00:07 +08:00
										 |  |  | # For instance: | 
					
						
							|  |  |  | #   APPFLOWY_CLOUD_BASE_URL=https://xxxxxxxxx | 
					
						
							|  |  |  | #   APPFLOWY_CLOUD_WS_BASE_URL=wss://xxxxxxxxx | 
					
						
							|  |  |  | #   APPFLOWY_CLOUD_GOTRUE_URL=https://xxxxxxxxx | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # Local host machine(For local develop) | 
					
						
							|  |  |  | #   APPFLOWY_CLOUD_BASE_URL=http://localhost:8000 | 
					
						
							|  |  |  | #   APPFLOWY_CLOUD_WS_BASE_URL=ws://localhost:8000/ws | 
					
						
							|  |  |  | #   APPFLOWY_CLOUD_GOTRUE_URL=http://localhost:9998 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | APPFLOWY_CLOUD_BASE_URL= | 
					
						
							|  |  |  | APPFLOWY_CLOUD_WS_BASE_URL= | 
					
						
							|  |  |  | APPFLOWY_CLOUD_GOTRUE_URL= |