2024-01-31 14:35:41 +03:00
|
|
|
/** @file Configuration for vite. */
|
|
|
|
import * as vite from 'vite'
|
|
|
|
|
|
|
|
import config from './vite.config'
|
|
|
|
|
|
|
|
// =====================
|
|
|
|
// === Configuration ===
|
|
|
|
// =====================
|
|
|
|
|
|
|
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
|
|
|
2024-03-08 06:14:26 +03:00
|
|
|
const SERVER_PORT = 8080
|
|
|
|
|
2024-01-31 14:35:41 +03:00
|
|
|
export default vite.mergeConfig(
|
|
|
|
config,
|
|
|
|
vite.defineConfig({
|
|
|
|
resolve: {
|
|
|
|
extensions: [
|
|
|
|
'.mock.mjs',
|
|
|
|
'.mock.js',
|
|
|
|
'.mock.mts',
|
|
|
|
'.mock.ts',
|
|
|
|
'.mock.jsx',
|
|
|
|
'.mock.tsx',
|
|
|
|
'.mock.json',
|
|
|
|
'.mjs',
|
|
|
|
'.js',
|
|
|
|
'.mts',
|
|
|
|
'.ts',
|
|
|
|
'.jsx',
|
|
|
|
'.tsx',
|
|
|
|
'.json',
|
|
|
|
],
|
|
|
|
},
|
2024-03-08 06:14:26 +03:00
|
|
|
define: {
|
|
|
|
'process.env.NODE_ENV': JSON.stringify('production'),
|
|
|
|
'process.env.ENSO_CLOUD_REDIRECT': JSON.stringify(`http://localhost:${SERVER_PORT}`),
|
|
|
|
'process.env.ENSO_CLOUD_ENVIRONMENT': JSON.stringify('production'),
|
|
|
|
'process.env.ENSO_CLOUD_API_URL': JSON.stringify('https://mock'),
|
|
|
|
'process.env.ENSO_CLOUD_SENTRY_DSN': JSON.stringify(''),
|
|
|
|
'process.env.ENSO_CLOUD_STRIPE_KEY': JSON.stringify(''),
|
|
|
|
'process.env.ENSO_CLOUD_CHAT_URL': JSON.stringify(''),
|
|
|
|
'process.env.ENSO_CLOUD_COGNITO_USER_POOL_ID': JSON.stringify(''),
|
|
|
|
'process.env.ENSO_CLOUD_COGNITO_USER_POOL_WEB_CLIENT_ID': JSON.stringify(''),
|
|
|
|
'process.env.ENSO_CLOUD_COGNITO_DOMAIN': JSON.stringify(''),
|
|
|
|
'process.env.ENSO_CLOUD_COGNITO_REGION': JSON.stringify(''),
|
|
|
|
},
|
2024-01-31 14:35:41 +03:00
|
|
|
})
|
|
|
|
)
|