mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-06-05 22:56:34 +02:00
chore: cleanup
This commit is contained in:
@@ -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,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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
@@ -40,7 +40,7 @@ export interface CloudUser {
|
||||
id: string;
|
||||
email: string;
|
||||
plan: string;
|
||||
planPeriod: string;
|
||||
planPeriod: string | null;
|
||||
subscriptionStatus: string;
|
||||
profileLimit: number;
|
||||
cloudProfilesUsed: number;
|
||||
|
||||
Reference in New Issue
Block a user