feat(sync): implement lww conflict and tombstone handling

This commit is contained in:
2026-04-06 01:33:57 +08:00
parent c48e16a977
commit c98adb3051
9 changed files with 530 additions and 19 deletions
+9 -1
View File
@@ -1,10 +1,18 @@
import "reflect-metadata";
import { ValidationPipe } from "@nestjs/common";
import { NestFactory } from "@nestjs/core";
import type { NestExpressApplication } from "@nestjs/platform-express";
import { AppModule } from "./app.module";
async function bootstrap(): Promise<void> {
const app = await NestFactory.create(AppModule);
const app = await NestFactory.create<NestExpressApplication>(AppModule);
const bodyLimit = process.env.API_BODY_LIMIT ?? "8mb";
app.useBodyParser("json", { limit: bodyLimit });
app.useBodyParser("urlencoded", {
extended: true,
limit: bodyLimit
});
app.enableCors({
origin: true,
credentials: true