diff --git a/frontend/src/config/index.js b/frontend/src/config/index.js index 0ee64509e..727760353 100644 --- a/frontend/src/config/index.js +++ b/frontend/src/config/index.js @@ -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 constants = { DECAY_START_TIME: new Date('2021-05-13 17:46:31-0000'), // GMT+0 diff --git a/frontend/src/config/schema.js b/frontend/src/config/schema.js index 1e3accb41..d3c0e8414 100644 --- a/frontend/src/config/schema.js +++ b/frontend/src/config/schema.js @@ -1,11 +1,11 @@ -const { +import { APP_VERSION, BUILD_COMMIT, BUILD_COMMIT_SHORT, COMMUNITY_DESCRIPTION, + COMMUNITY_LOCATION, COMMUNITY_NAME, COMMUNITY_SUPPORT_MAIL, - COMMUNITY_LOCATION, COMMUNITY_URL, DEBUG, DECAY_START_TIME, @@ -14,8 +14,8 @@ const { HUMHUB_ACTIVE, NODE_ENV, PRODUCTION, -} = require('config-schema') -const Joi = require('joi') +} from 'config-schema' +import Joi from 'joi' // console.log(commonSchema) diff --git a/frontend/vite.config.js b/frontend/vite.config.mjs similarity index 100% rename from frontend/vite.config.js rename to frontend/vite.config.mjs