Environments

Create .env.dev and .env.prod files in the root directory by copying the contents of the .env.dist file.

Local Environment Configuration

You must define your license key, which you obtained from the my domains section in the customer panel, to the fixed value VITE_LICENSE_KEY in .env, as shown in the following example.

Environments License Key

Vite dev environment configuration example;

VITE_DEFAULT_LOCALE=tr
VITE_FALLBACK_LOCALE=en
VITE_SUPPORTED_LOCALES=en,tr
VITE_API_URL=http://example.local/api
VITE_LICENSE_KEY=2CB8531A-6F03-4ED6-9F5E-BC3413D5360C
VITE_SESSION_UPDATE_TIME=5
VITE_COOKIE={ "token": "_local_demo_token", "user": "_local_demo_user" }

Production Environment Configuration

Copy the license key you created for your domain from the management console;

Meta License Key

place it between the head tags on your application index.html page as shown in the example below.

<!doctype html>
<html>
<head>
    <meta name="ol:key" content="720390F5-4C48-41F5-806A-A7FF19A87AA8" />
</head>

Vite prod environment configuration example;

VITE_DEFAULT_LOCALE=tr
VITE_FALLBACK_LOCALE=en
VITE_SUPPORTED_LOCALES=en,tr
VITE_API_URL=https://example.com/api
VITE_LICENSE_KEY=2F246638-C96E-4C69-8590-781B79EB7C72
VITE_SESSION_UPDATE_TIME=5
VITE_COOKIE={ "token": "_demo_token", "user": "_demo_user" }
This documents is available for subscribers only

Get Full Accesss