2023-10-02 09:22:22 +00:00
|
|
|
# Initial Setup
|
2023-11-05 06:00:24 +00:00
|
|
|
|
2023-10-02 09:22:22 +00:00
|
|
|
# 1. Copy the dev.env file to .env:
|
2023-11-05 06:00:24 +00: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 09:22:22 +00:00
|
|
|
|
2023-11-05 06:00:24 +00: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 01:58:44 +00:00
|
|
|
# Local: 0
|
|
|
|
# Supabase: 1
|
|
|
|
# AppFlowy Cloud: 2
|
2023-11-05 06:00:24 +00:00
|
|
|
# By default, it's set to Local.
|
2023-10-07 01:58:44 +00:00
|
|
|
CLOUD_TYPE=0
|
2023-10-02 09:22:22 +00:00
|
|
|
|
|
|
|
# Supabase Configuration
|
2023-11-05 06:00:24 +00:00
|
|
|
# If using Supabase (CLOUD_TYPE=1), provide the following details:
|
2023-10-02 09:22:22 +00:00
|
|
|
SUPABASE_URL=replace-with-your-supabase-url
|
|
|
|
SUPABASE_ANON_KEY=replace-with-your-supabase-key
|
|
|
|
|
|
|
|
# AppFlowy Cloud Configuration
|
2023-11-05 06:00:24 +00:00
|
|
|
# If using AppFlowy Cloud (CLOUD_TYPE=2), provide the following details:
|
2023-10-02 09:22:22 +00:00
|
|
|
APPFLOWY_CLOUD_BASE_URL=replace-with-your-appflowy-cloud-url
|
2023-10-07 01:58:44 +00:00
|
|
|
APPFLOWY_CLOUD_WS_BASE_URL=replace-with-your-appflowy-cloud-ws-url
|
2023-11-05 06:00:24 +00:00
|
|
|
APPFLOWY_CLOUD_GOTRUE_URL=replace-with-your-appflowy-cloud-gotrue-url
|
|
|
|
|
|
|
|
|