Skip to main content

Adding environmental variable values

Learn how to actually add production ready values to environmental variables correctly

1:

NEXT_PUBLIC_APPWRITE_ENDPOINT

Go to appwrite project, then to settings page. Inside API credentials section, you can see the API Endpoint option. Copy and paste that value.

For Example

NEXT_PUBLIC_APPWRITE_ENDPOINT=https://fra.cloud.appwrite.io/v1 or https://mydomain.com/v1 (if you have setup the custom domain).


2:

NEXT_PUBLIC_APPWRITE_PROJECT_ID

Go to appwrite project, then to settings page. Inside API credentials section, you can see the Project ID option. Copy and paste that value.

For Example

NEXT_PUBLIC_APPWRITE_PROJECT_ID=67fd7905001a20b5jd37


3:

NEXT_PUBLIC_APPWRITE_DATABASE_ID

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.

For Example

NEXT_PUBLIC_APPWRITE_DATABASE_ID=45fecfei0f2f909fc089


4:

NEXT_PUBLIC_BASE_URL

It is the domain URL of your app on which your app is currently deployed in vercel.

For Example

NEXT_PUBLIC_BASE_URL=https://app.lowcosttts.online


5:

FISH_AUDIO_API_KEY

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.

For Example

FISH_AUDIO_API_KEY=03e5jbc28bc95daba2c1e73e791086e3


6:

NEXT_PUBLIC_APPWRITE_USER_PROFILES_COLLECTION_ID

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.

For Example

NEXT_PUBLIC_APPWRITE_USER_PROFILES_COLLECTION_ID=45fecfei0f2f909fc089


7:

NEXT_PUBLIC_APPWRITE_HISTORY_COLLECTION_ID

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.

For Example

NEXT_PUBLIC_APPWRITE_HISTORY_COLLECTION_ID=45fecfei0f2f909fc089


8:

NEXT_PUBLIC_APPWRITE_USER_MODELS_COLLECTION_ID

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.

For Example

NEXT_PUBLIC_APPWRITE_USER_MODELS_COLLECTION_ID=45fecfei0f2f909fc089


9:

NEXT_PUBLIC_APPWRITE_BROWSE_MODELS_COLLECTION_ID

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.

For Example

NEXT_PUBLIC_APPWRITE_BROWSE_MODELS_COLLECTION_ID=45fecfei0f2f909fc089


10:

NEXT_PUBLIC_APPWRITE_STORAGE_BUCKET_ID

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.

For Example

NEXT_PUBLIC_APPWRITE_STORAGE_BUCKET_ID=45fecfei0f2f909fc089


11:

CREEM_API_KEY

Navigate to https://www.creem.io/dashboard/developers url. Just copy the API key and paste it.

For Example

CREEM_API_KEY=creem_6JH2BoBb255DpU0nvxhRI


12:

CREEM_WEBHOOK_SECRET

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.

For Example

CREEM_WEBHOOK_SECRET=creem_6JH2BoBb255DpU0nvxhRI


13:

APPWRITE_API_KEY

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.

For Example

APPWRITE_API_KEY=standard_09c8ae63eb111a3cd02a522ce79ee9663bd6facd14c38977b4c8ab4b7a93751226fc673b4cc70d82184a2f22de935888246ae64f4af36a71452406e2e1101b3a799b4847f89dd9b51


14:

NEXT_PUBLIC_CHAR_ALLOWED

It defines how much number of free credits should be allowed for a new user on your app.

For Example

NEXT_PUBLIC_CHAR_ALLOWED=1000


15:

NEXT_PUBLIC_CHAR_REMAINING

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.

For Example

NEXT_PUBLIC_CHAR_REMAINING=1000


16:

NEXT_PUBLIC_CREEM_STARTER_MONTHLY_PRODUCT_ID

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.

For Example

NEXT_PUBLIC_CREEM_STARTER_MONTHLY_PRODUCT_ID=prod_3d6z0m8mKmzuV9LvPwc0jf


17:

NEXT_PUBLIC_CREEM_STARTER_YEARLY_PRODUCT_ID

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.

For Example

NEXT_PUBLIC_CREEM_STARTER_YEARLY_PRODUCT_ID=prod_5G6z0m8mKmzuV9LvPwc0jf


18:

NEXT_PUBLIC_CREEM_PRO_MONTHLY_PRODUCT_ID

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.

For Example

NEXT_PUBLIC_CREEM_PRO_MONTHLY_PRODUCT_ID=prod_5G6z0m8mKmzuV9LvPwc0jf


19:

NEXT_PUBLIC_CREEM_PRO_YEARLY_PRODUCT_ID

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.

For Example

NEXT_PUBLIC_CREEM_PRO_YEARLY_PRODUCT_ID=prod_5G6z0m8mKmzuV9LvPwc0jf


20:

NEXT_PUBLIC_CREEM_TURBO_MONTHLY_PRODUCT_ID

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.

For Example

NEXT_PUBLIC_CREEM_TURBO_MONTHLY_PRODUCT_ID=prod_5G6z0m8mKmzuV9LvPwc0jf


21:

NEXT_PUBLIC_CREEM_TURBO_YEARLY_PRODUCT_ID

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.

For Example

NEXT_PUBLIC_CREEM_TURBO_YEARLY_PRODUCT_ID=prod_5G6z0m8mKmzuV9LvPwc0jf


22:

NEXT_PUBLIC_APPWRITE_SUBSCRIPTIONS_COLLECTION_ID

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.

For Example

NEXT_PUBLIC_APPWRITE_SUBSCRIPTIONS_COLLECTION_ID=682c306c001761914033


23:

FISH_AUDIO_API_BASE_URL

It will be the Fish Audio API Url to which requests will be sent.

For Example

FISH_AUDIO_API_BASE_URL=https://api.fish.audio


24:

FISH_AUDIO_SPEECH_MODEL

Its default value should be 1.5 because version 1.5 of Fish Audio API is stable.

For Example

FISH_AUDIO_SPEECH_MODEL=speech-1.5


25:

CREEM_API_BASE_URL

It will be the Fish Audio API Url to which requests will be sent.

For Example

CREEM_API_BASE_URL=https://test-api.creem.io