---
title: Define Global Settings
---

# Define Global Settings

Declares the global configuration of your project. The configuration file `src/global.config.ts` is managed in the following format:

```ts
import { GlobalConfig } from '@ray-js/types';

// Global configuration of IoT WeChat miniApp
export const wechat = {
  // Global configuration of IoT WeChat miniApp
};

// Global configuration of Smart Miniapp
export const tuya = {};

// Global configuration of Web H5 page
export const web = {};

// Generic configuration
const globalConfig: GlobalConfig = {
  basename: '',
};

export default globalConfig;
```

- [Global Configuration of WeChat MiniApp](https://developers.weixin.qq.com/miniprogram/en/dev/reference/configuration/app.html)
- [Global Configuration of Smart MiniApp](/en/miniapp/develop/miniapp/framework/app/app-json)

To support multiple platforms, you can export the global configuration by making the following declaration `export const <$target> = {}`. By default, the generic configuration is exported.

## Generic configuration

### basename

Type: `string`

The base path of a route.
