This commit is contained in:
Erik Michelson 2025-03-11 06:57:55 +01:00
parent 159a100b0d
commit efec25e4fb
No known key found for this signature in database
GPG key ID: DB99ADDDC5C0AF82
29 changed files with 25 additions and 1134 deletions

View file

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
const { isMockMode, isTestMode, isProfilingMode, isBuildTime } = require('./src/utils/test-modes')
const { isTestMode, isProfilingMode, isBuildTime } = require('./src/utils/test-modes')
const path = require('path')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const withBundleAnalyzer = require('@next/bundle-analyzer')({
@ -21,14 +21,6 @@ if (isTestMode) {
`)
}
if (isMockMode) {
console.warn(`This build runs in mock mode. This means:
- No real data. All API responses are mocked
- No persistent data
- No realtime editing
`)
}
if (isBuildTime) {
console.warn(`This process runs in build mode. During build time this means:
- Editor and Renderer base urls are '' (empty string)