import type { Config } from '~/types/config' export const appName = 'Nuxt 4 Template' export const appDescription = 'Nuxt 4 Template 是一个基于 Nuxt 4 的模板项目,用于快速搭建 Nuxt 4 项目。' export const apiBase = import.meta.env.VITE_API_URL const config: Config = { websiteTitle: appName, footerWrite: { url: import.meta.env.VITE_INDEX_URL, adminUrl: import.meta.env.VITE_ADMIN_URL, }, defaultSettings: { /** * @type String * @description Application's default title */ title: '绘家', /** * @type String * @description accessToken */ cookieTokenName: 'wctm__', /** * @type String * @description refreshToken */ cookieRefreshTokenName: 'wcRhtm__', /** * @type String * @description 当前登录企业 ID */ enterpriseUserIdName: 'wcEnI__', /** * @type String * @description 当前登录uuid */ uuidName: 'wcuutm__', /** * @type {boolean} true | false * @description Whether need tagsView */ tagsView: true, /** * @type {boolean} true | false * @description Whether fix the header */ fixedHeader: true, /** * @type {boolean} true | false * @description Whether show the logo in sidebar */ sidebarLogo: true, /** * @type {string | array} 'production' | ['production', 'development'] * @description Need show err logs component. * The default is only used in the production env * If you want to also use it in dev, you can pass ['production', 'development'] */ errorLog: ['production', 'development'], fileUrl: '/yyds/file/download/', }, } export default config