Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

disable typeorm synchronize

Blue Mouse8b8d55e49fbd
diff --git a/apps/production/src/app.module.ts b/apps/production/src/app.module.ts
index 7f3fcbdd5..14dae1b43 100644
--- a/apps/production/src/app.module.ts
+++ b/apps/production/src/app.module.ts
@@ -19,7 +19,7 @@ import { AlertModule } from './alert/alert.module'
import { getI18nConfig } from './configs'
import { AuthModule } from './auth/auth.module'
import { CaptchaModule } from './captcha/captcha.module'
-import { isDevelopment } from './common/constants'
+// import { isDevelopment } from './common/constants'
import { IntegrationsModule } from './integrations/integrations.module'
const modules = [
@@ -36,7 +36,7 @@ const modules = [
username: process.env.MYSQL_USER,
password: process.env.MYSQL_ROOT_PASSWORD,
database: process.env.MYSQL_DATABASE,
- synchronize: isDevelopment,
+ synchronize: false, // isDevelopment,
entities: [`${__dirname}/**/*.entity{.ts,.js}`],
}),
I18nModule.forRootAsync(getI18nConfig()),