chore: cleanup

This commit is contained in:
zhom
2026-02-16 00:08:12 +04:00
parent 3bb305d638
commit 354e6f4f6b
4 changed files with 15 additions and 8 deletions
+11
View File
@@ -0,0 +1,11 @@
[phases.setup]
nixPkgs = ["nodejs_22"]
[phases.install]
cmds = ["npm install --include=dev"]
[phases.build]
cmds = ["npm run build", "npm prune --omit=dev"]
[start]
cmd = "npm run start:prod"
+2 -6
View File
@@ -2,12 +2,8 @@ import { NestFactory } from "@nestjs/core";
import { AppModule } from "./app.module.js";
function validateEnv() {
const required = ["SYNC_TOKEN"];
const missing = required.filter((key) => !process.env[key]);
if (missing.length > 0) {
console.error(
`Missing required environment variables: ${missing.join(", ")}`,
);
if (!process.env.SYNC_TOKEN && !process.env.SYNC_JWT_PUBLIC_KEY) {
console.error("Either SYNC_TOKEN or SYNC_JWT_PUBLIC_KEY must be set");
process.exit(1);
}
}
+1 -1
View File
@@ -26,7 +26,7 @@ pub struct CloudUser {
pub email: String,
pub plan: String,
#[serde(rename = "planPeriod")]
pub plan_period: String,
pub plan_period: Option<String>,
#[serde(rename = "subscriptionStatus")]
pub subscription_status: String,
#[serde(rename = "profileLimit")]
+1 -1
View File
@@ -40,7 +40,7 @@ export interface CloudUser {
id: string;
email: string;
plan: string;
planPeriod: string;
planPeriod: string | null;
subscriptionStatus: string;
profileLimit: number;
cloudProfilesUsed: number;