feat: initial scaffold - backend, frontend, Prisma schema, Docker
- Prisma schema: User, Session, RepoConfig, Preview, Job, WebhookToken, NoConfigComment, AdminSettings - Backend: auth (login/logout/me/first-user setup), webhook handler with HMAC verification, EC2 service, SSH service, deploy pipeline, job queue worker, cron workers - Frontend: Login with first-user detection, Dashboard, PreviewDetail with live log streaming, Settings, Repos config, Admin panel, SetupWizard, Privacy page - Docker Compose and Dockerfile for self-hosted deployment - Uses bcryptjs for Node 24 compatibility Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Vendored
+58
@@ -0,0 +1,58 @@
|
||||
"use strict";
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var env_exports = {};
|
||||
__export(env_exports, {
|
||||
env: () => env
|
||||
});
|
||||
module.exports = __toCommonJS(env_exports);
|
||||
var import_dotenv = __toESM(require("dotenv"));
|
||||
var import_path = require("path");
|
||||
var import_zod = require("zod");
|
||||
import_dotenv.default.config({ path: (0, import_path.join)(__dirname, "../../.env") });
|
||||
const schema = import_zod.z.object({
|
||||
NODE_ENV: import_zod.z.enum(["development", "production", "test"]).default("development"),
|
||||
DATABASE_URL: import_zod.z.string().min(1),
|
||||
PORT: import_zod.z.coerce.number().int().positive().default(5e3),
|
||||
SESSION_SECRET: import_zod.z.string().min(16),
|
||||
PP_BASE_URL: import_zod.z.string().min(1),
|
||||
ENCRYPTION_KEY: import_zod.z.string().length(64, "ENCRYPTION_KEY must be 64 hex chars (32 bytes AES-256)"),
|
||||
LOG_LEVEL: import_zod.z.string().default("info")
|
||||
});
|
||||
const result = schema.safeParse(process.env);
|
||||
if (!result.success) {
|
||||
const formatted = result.error.issues.map((i) => ` ${i.path.join(".")}: ${i.message}`).join("\n");
|
||||
throw new Error(`Invalid environment variables:
|
||||
${formatted}`);
|
||||
}
|
||||
const env = result.data;
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
env
|
||||
});
|
||||
//# sourceMappingURL=env.js.map
|
||||
Reference in New Issue
Block a user