mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
fix admin import config
This commit is contained in:
parent
f7d556b9d4
commit
106bdf019a
@ -2,7 +2,7 @@
|
||||
// The whole contents is exposed to the client
|
||||
|
||||
// Load Package Details for some default values
|
||||
const pkg = require('../../package')
|
||||
import pkg from '../../package'
|
||||
|
||||
const version = {
|
||||
ADMIN_MODULE_PROTOCOL: process.env.ADMIN_MODULE_PROTOCOL ?? 'http',
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
const {
|
||||
import {
|
||||
APP_VERSION,
|
||||
BUILD_COMMIT,
|
||||
BUILD_COMMIT_SHORT,
|
||||
@ -10,8 +10,8 @@ const {
|
||||
NODE_ENV,
|
||||
OPENAI_ACTIVE,
|
||||
PRODUCTION,
|
||||
} = require('config-schema')
|
||||
const Joi = require('joi')
|
||||
} from 'config-schema'
|
||||
import Joi from 'joi'
|
||||
|
||||
module.exports = Joi.object({
|
||||
APP_VERSION,
|
||||
|
||||
@ -7,18 +7,17 @@ import IconsResolve from 'unplugin-icons/resolver'
|
||||
import { BootstrapVueNextResolver } from 'bootstrap-vue-next'
|
||||
import EnvironmentPlugin from 'vite-plugin-environment'
|
||||
import schema from './src/config/schema'
|
||||
import CONFIG from './src/config'
|
||||
import { execSync } from 'node:child_process'
|
||||
import { existsSync, constants } from 'node:fs'
|
||||
|
||||
import { validate, browserUrls } from 'config-schema'
|
||||
import path from 'node:path'
|
||||
|
||||
import path from 'node:path'
|
||||
import dotenv from 'dotenv'
|
||||
|
||||
dotenv.config() // load env vars from .env
|
||||
|
||||
const CONFIG = require('./src/config')
|
||||
|
||||
export default defineConfig(async ({ command }) => {
|
||||
const { vitePluginGraphqlLoader } = await import('vite-plugin-graphql-loader')
|
||||
if (command === 'serve') {
|
||||
Loading…
x
Reference in New Issue
Block a user