Adding environmental variable values
Learn how to actually add production ready values to environmental variables correctly
1:
Go to appwrite project, then to settings page. Inside API credentials section, you can see the API Endpoint option. Copy and paste that value.
NEXT_PUBLIC_APPWRITE_ENDPOINT=https://fra.cloud.appwrite.io/v1 or https://mydomain.com/v1 (if you have setup the custom domain).
2:
Go to appwrite project, then to settings page. Inside API credentials section, you can see the Project ID option. Copy and paste that value.
NEXT_PUBLIC_APPWRITE_PROJECT_ID=67fd7905001a20b5jd37
3:
Inside your project, go to left side bar and select Databases menu under Build section. Then select your previously created database which you are going to use inside app. From top left, copy the database id and paste it.
NEXT_PUBLIC_APPWRITE_DATABASE_ID=45fecfei0f2f909fc089
4:
It is the domain URL of your app on which your app is currently deployed in vercel.
NEXT_PUBLIC_BASE_URL=https://app.lowcosttts.online
5:
Navigate to https://fish.audio/go-api/api-keys/ . In API list section, click on copy icon button. It will copy the API Key. Then paste it.
FISH_AUDIO_API_KEY=03e5jbc28bc95daba2c1e73e791086e3
6:
Inside your project, go to left side bar and select Databases menu under Build section. Then select your previously created database which you are going to use inside app. Now inside that database, select USER_PROFILES collection. From top left, copy that collection id and paste it.
NEXT_PUBLIC_APPWRITE_USER_PROFILES_COLLECTION_ID=45fecfei0f2f909fc089
7:
Inside your project, go to left side bar and select Databases menu under Build section. Then select your previously created database which you are going to use inside app. Now inside that database, select HISTORY collection. From top left, copy that collection id and paste it.
NEXT_PUBLIC_APPWRITE_HISTORY_COLLECTION_ID=45fecfei0f2f909fc089
8:
Inside your project, go to left side bar and select Databases menu under Build section. Then select your previously created database which you are going to use inside app. Now inside that database, select USER_MODELS collection. From top left, copy that collection id and paste it.
NEXT_PUBLIC_APPWRITE_USER_MODELS_COLLECTION_ID=45fecfei0f2f909fc089
9:
Inside your project, go to left side bar and select Databases menu under Build section. Then select your previously created database which you are going to use inside app. Now inside that database, select BROWSE_MODELS collection. From top left, copy that collection id and paste it.
NEXT_PUBLIC_APPWRITE_BROWSE_MODELS_COLLECTION_ID=45fecfei0f2f909fc089
10:
Inside your project, go to left side bar and select Storage menu under Build section. Then select your previously created storage bucket i.e. AUDIO_FILES which you are going to use inside app. From top left, copy that storage bucket id and paste it.
NEXT_PUBLIC_APPWRITE_STORAGE_BUCKET_ID=45fecfei0f2f909fc089
11:
Navigate to https://www.creem.io/dashboard/developers url. Just copy the API key and paste it.
CREEM_API_KEY=creem_6JH2BoBb255DpU0nvxhRI
12:
Navigate to https://www.creem.io/dashboard/developers/webhooks url. Select webhook VERCEL LIVE and then click on Reveal Secret button. It will generate webhook secret, just copy and paste it.
CREEM_WEBHOOK_SECRET=creem_6JH2BoBb255DpU0nvxhRI
13:
Go to appwrite project, then to settings page. Inside API credentials section, you can see the API Endpoint option. Click on View API keys button. Now select the previously created API key. Inside key details section, copy the API Key from secret section and paste it inside env file.
APPWRITE_API_KEY=standard_09c8ae63eb111a3cd02a522ce79ee9663bd6facd14c38977b4c8ab4b7a93751226fc673b4cc70d82184a2f22de935888246ae64f4af36a71452406e2e1101b3a799b4847f89dd9b51
14:
It defines how much number of free credits should be allowed for a new user on your app.
NEXT_PUBLIC_CHAR_ALLOWED=1000
15:
It tracks the remaigning free credits of a free user. Since It is the relative part of NEXT_PUBLIC_CHAR_ALLOWED . Therefore, its value should also be same as above.
NEXT_PUBLIC_CHAR_REMAINING=1000
16:
Go to creem.io dashboard. Then go to Products page and copy the product id of STARTER MONTHLY product and paste it inside env file.
NEXT_PUBLIC_CREEM_STARTER_MONTHLY_PRODUCT_ID=prod_3d6z0m8mKmzuV9LvPwc0jf
17:
Go to creem.io dashboard. Then go to Products page and copy the product id of STARTER YEARLY product and paste it inside env file.
NEXT_PUBLIC_CREEM_STARTER_YEARLY_PRODUCT_ID=prod_5G6z0m8mKmzuV9LvPwc0jf
18:
Go to creem.io dashboard. Then go to Products page and copy the product id of PRO MONTHLY product and paste it inside env file.
NEXT_PUBLIC_CREEM_PRO_MONTHLY_PRODUCT_ID=prod_5G6z0m8mKmzuV9LvPwc0jf
19:
Go to creem.io dashboard. Then go to Products page and copy the product id of PRO YEARLY product and paste it inside env file.
NEXT_PUBLIC_CREEM_PRO_YEARLY_PRODUCT_ID=prod_5G6z0m8mKmzuV9LvPwc0jf
20:
Go to creem.io dashboard. Then go to Products page and copy the product id of TURBO MONTHLY product and paste it inside env file.
NEXT_PUBLIC_CREEM_TURBO_MONTHLY_PRODUCT_ID=prod_5G6z0m8mKmzuV9LvPwc0jf
21:
Go to creem.io dashboard. Then go to Products page and copy the product id of TURBO YEARLY product and paste it inside env file.
NEXT_PUBLIC_CREEM_TURBO_YEARLY_PRODUCT_ID=prod_5G6z0m8mKmzuV9LvPwc0jf
22:
Inside your project, go to left side bar and select Databases menu under Build section. Then select your previously created database which you are going to use inside app. Now inside that database, select SUBSCRIPTIONS collection. From top left, copy that collection id and paste it.
NEXT_PUBLIC_APPWRITE_SUBSCRIPTIONS_COLLECTION_ID=682c306c001761914033
23:
It will be the Fish Audio API Url to which requests will be sent.
FISH_AUDIO_API_BASE_URL=https://api.fish.audio
24:
Its default value should be 1.5 because version 1.5 of Fish Audio API is stable.
FISH_AUDIO_SPEECH_MODEL=speech-1.5
25:
It will be the Fish Audio API Url to which requests will be sent.
CREEM_API_BASE_URL=https://test-api.creem.io