23 lines
543 B
TypeScript
23 lines
543 B
TypeScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
export default defineNuxtConfig({
|
|
compatibilityDate: '2024-04-03',
|
|
devtools: { enabled: true },
|
|
|
|
app: {
|
|
baseURL: '/widget/', // Базовый путь
|
|
// buildAssetsDir: '/widget/_nuxt/', // Путь для статических файлов
|
|
},
|
|
|
|
runtimeConfig: {
|
|
public: {
|
|
apiBase: process.env.NODE_ENV == 'development' ? 'http://localhost:8000' : '',
|
|
data_deal_id: 0
|
|
}
|
|
},
|
|
|
|
colorMode: {
|
|
preference: 'light'
|
|
},
|
|
|
|
modules: ['@nuxt/ui'],
|
|
}) |