@wwchen/stack 0.9.1 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -23
- package/blocks/AGENTS.md +11 -31
- package/blocks/CLAUDE.md +10 -36
- package/blocks/env.example +1 -18
- package/blocks/gitignore +1 -8
- package/dist/cli/builtin.d.ts +7 -0
- package/dist/cli/builtin.js +42 -0
- package/dist/cli/check.d.ts +5 -0
- package/dist/cli/check.js +39 -0
- package/dist/cli/context.d.ts +4 -35
- package/dist/cli/context.js +1 -23
- package/dist/cli/discover.d.ts +15 -0
- package/dist/cli/discover.js +156 -0
- package/dist/cli/generate.d.ts +6 -0
- package/dist/cli/generate.js +94 -0
- package/dist/cli/host.d.ts +8 -0
- package/dist/cli/host.js +146 -0
- package/dist/cli/index.js +4 -71
- package/dist/cli/owned.d.ts +33 -0
- package/dist/cli/owned.js +151 -0
- package/dist/cli/sync.d.ts +19 -0
- package/dist/cli/sync.js +231 -0
- package/dist/configs/vitest.d.ts +3 -1
- package/dist/configs/vitest.js +8 -11
- package/dist/connections/env.d.ts +8 -0
- package/dist/connections/env.js +15 -0
- package/dist/connections/index.d.ts +1 -1
- package/dist/connections/index.js +1 -1
- package/dist/connections/table.d.ts +5 -3
- package/dist/connections/table.js +3 -3
- package/dist/env/core-env.d.ts +23 -0
- package/dist/env/core-env.js +24 -0
- package/dist/env/define-env.d.ts +22 -10
- package/dist/env/define-env.js +72 -17
- package/dist/env/index.d.ts +2 -2
- package/dist/env/index.js +1 -1
- package/dist/http/client-ip.d.ts +6 -0
- package/dist/http/client-ip.js +21 -0
- package/dist/http/index.d.ts +2 -0
- package/dist/http/index.js +2 -0
- package/dist/http/safe-next.d.ts +11 -0
- package/dist/http/safe-next.js +30 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/next/api.d.ts +9 -8
- package/dist/next/api.js +10 -8
- package/dist/next/config.d.ts +2 -0
- package/dist/next/config.js +10 -6
- package/dist/next/health.d.ts +5 -7
- package/dist/next/health.js +16 -17
- package/dist/stack/contracts.d.ts +202 -0
- package/dist/stack/contracts.js +66 -0
- package/dist/vercel/index.d.ts +28 -0
- package/dist/vercel/index.js +90 -0
- package/files/.claude/rules/stack-ui.md +24 -0
- package/files/next.config.ts +6 -0
- package/files/src/app/api/health/route.ts +9 -0
- package/package.json +16 -29
- package/dist/cli/db.d.ts +0 -4
- package/dist/cli/db.js +0 -43
- package/dist/cli/dev.d.ts +0 -4
- package/dist/cli/dev.js +0 -70
- package/dist/cli/doctor.d.ts +0 -40
- package/dist/cli/doctor.js +0 -166
- package/dist/cli/migrate-suite.d.ts +0 -2
- package/dist/cli/migrate-suite.js +0 -491
- package/dist/cli/neon.d.ts +0 -79
- package/dist/cli/neon.js +0 -384
- package/dist/cli/run.d.ts +0 -2
- package/dist/cli/run.js +0 -29
- package/dist/cli/sync-blocks.d.ts +0 -14
- package/dist/cli/sync-blocks.js +0 -93
- package/dist/cli/user-create.d.ts +0 -6
- package/dist/cli/user-create.js +0 -77
- package/dist/cli/vercel-build.d.ts +0 -4
- package/dist/cli/vercel-build.js +0 -61
- package/dist/db/explaining-pool.d.ts +0 -11
- package/dist/db/explaining-pool.js +0 -55
- package/dist/db/index.d.ts +0 -20
- package/dist/db/index.js +0 -31
- package/dist/db/migration-status.d.ts +0 -5
- package/dist/db/migration-status.js +0 -38
- package/dist/db/schema-changes.d.ts +0 -13
- package/dist/db/schema-changes.js +0 -99
- package/dist/db/ssl.d.ts +0 -4
- package/dist/db/ssl.js +0 -17
- package/dist/db/target.d.ts +0 -19
- package/dist/db/target.js +0 -65
- package/dist/db/testing/index.d.ts +0 -23
- package/dist/db/testing/index.js +0 -67
- package/dist/db/testing/isolate.d.ts +0 -1
- package/dist/db/testing/isolate.js +0 -3
- package/dist/db/testing/pglite.d.ts +0 -20
- package/dist/db/testing/pglite.js +0 -79
- package/dist/env/stack-env.d.ts +0 -37
- package/dist/env/stack-env.js +0 -54
- package/dist/env/testing.d.ts +0 -6
- package/dist/env/testing.js +0 -13
package/dist/cli/dev.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
// `stack dev [--pglite] [next dev args]` — the app's dev server.
|
|
2
|
-
//
|
|
3
|
-
// - Plain: `next dev` on your Neon dev branch, as `stack with-neon next dev`.
|
|
4
|
-
// - `--pglite`: no Neon at all. PGlite (the app's own devDependency) is served on a free loopback port with its data in `.local-db/`, migrated with the app's migrations, seeded with its `db/seed.ts` the first time, and `next dev` runs against it. The server stops when `next dev` exits. Delete `.local-db/` to start again from the seed.
|
|
5
|
-
//
|
|
6
|
-
// PGlite serves one connection at a time: while `next dev` runs, nothing else (a script, a migration) can use the database.
|
|
7
|
-
import { existsSync, mkdirSync, rmSync } from "node:fs";
|
|
8
|
-
import { join } from "node:path";
|
|
9
|
-
import { loadAppEnv } from "./context.js";
|
|
10
|
-
import { migrate, runAppSeed, withNeon } from "./neon.js";
|
|
11
|
-
/** Where `--pglite` keeps its database, at the app's root; git-ignored by the stack's block. */
|
|
12
|
-
export const LOCAL_DB_DIR = ".local-db";
|
|
13
|
-
export async function dev(cli, args) {
|
|
14
|
-
const local = args.includes("--pglite");
|
|
15
|
-
const nextArgs = args.filter((arg) => arg !== "--pglite");
|
|
16
|
-
if (!local)
|
|
17
|
-
return withNeon(cli, ["pnpm", "exec", "next", "dev", ...nextArgs]);
|
|
18
|
-
return devPglite(cli, nextArgs);
|
|
19
|
-
}
|
|
20
|
-
async function devPglite(cli, nextArgs) {
|
|
21
|
-
const dataDir = join(cli.cwd, LOCAL_DB_DIR);
|
|
22
|
-
const fresh = !existsSync(dataDir);
|
|
23
|
-
mkdirSync(dataDir, { recursive: true });
|
|
24
|
-
const server = await cli.startLocalDatabase(dataDir).catch((error) => {
|
|
25
|
-
if (fresh)
|
|
26
|
-
rmSync(dataDir, { recursive: true, force: true });
|
|
27
|
-
throw error;
|
|
28
|
-
});
|
|
29
|
-
let ready = false;
|
|
30
|
-
// Ctrl-C reaches every process in the terminal's group: `next dev` and a migration stop on their own, and this one waits for them, then stops the database and removes a new one it could not finish.
|
|
31
|
-
let interrupted = false;
|
|
32
|
-
const onSignal = () => {
|
|
33
|
-
interrupted = true;
|
|
34
|
-
};
|
|
35
|
-
process.on("SIGINT", onSignal);
|
|
36
|
-
process.on("SIGTERM", onSignal);
|
|
37
|
-
try {
|
|
38
|
-
cli.error(`[local] PGlite on ${server.url}, data in ${LOCAL_DB_DIR}/`);
|
|
39
|
-
// Every child, and the app's modules imported here, read this database and never Neon's: what is set here wins over `.env`, and an empty UNPOOLED keeps one from `.env` (a Neon branch's direct URL) from sending the migration elsewhere.
|
|
40
|
-
Object.assign(cli.env, { DATABASE_URL: server.url, DATABASE_URL_UNPOOLED: "" });
|
|
41
|
-
loadAppEnv(cli);
|
|
42
|
-
const migrated = await migrate(cli, cli.env);
|
|
43
|
-
if (migrated !== 0) {
|
|
44
|
-
cli.error(`[local] the migration failed (exit ${migrated}); not starting next dev.`);
|
|
45
|
-
return migrated;
|
|
46
|
-
}
|
|
47
|
-
if (interrupted)
|
|
48
|
-
return 130;
|
|
49
|
-
if (fresh) {
|
|
50
|
-
await runAppSeed(cli);
|
|
51
|
-
cli.error("[local] seeded from db/seed.ts");
|
|
52
|
-
}
|
|
53
|
-
if (interrupted)
|
|
54
|
-
return 130;
|
|
55
|
-
ready = true;
|
|
56
|
-
const { code } = await cli.exec("pnpm", ["exec", "next", "dev", ...nextArgs], {
|
|
57
|
-
env: cli.env,
|
|
58
|
-
inherit: true,
|
|
59
|
-
});
|
|
60
|
-
return code;
|
|
61
|
-
}
|
|
62
|
-
finally {
|
|
63
|
-
process.off("SIGINT", onSignal);
|
|
64
|
-
process.off("SIGTERM", onSignal);
|
|
65
|
-
await server.stop();
|
|
66
|
-
// A database this run created but could not migrate or seed would never be seeded again.
|
|
67
|
-
if (fresh && !ready)
|
|
68
|
-
rmSync(dataDir, { recursive: true, force: true });
|
|
69
|
-
}
|
|
70
|
-
}
|
package/dist/cli/doctor.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { type Cli } from "./context.ts";
|
|
2
|
-
export type Severity = "error" | "warning" | "info";
|
|
3
|
-
export type Finding = {
|
|
4
|
-
severity: Severity;
|
|
5
|
-
message: string;
|
|
6
|
-
};
|
|
7
|
-
export type Target = "production" | "preview" | "development";
|
|
8
|
-
/** One Vercel environment variable, metadata only: there is deliberately no `value`. */
|
|
9
|
-
export type EnvVarMeta = {
|
|
10
|
-
id: string;
|
|
11
|
-
key: string;
|
|
12
|
-
type: string;
|
|
13
|
-
target: string[];
|
|
14
|
-
gitBranch?: string;
|
|
15
|
-
configurationId?: string;
|
|
16
|
-
comment?: string;
|
|
17
|
-
};
|
|
18
|
-
export type Hosting = {
|
|
19
|
-
project: string;
|
|
20
|
-
/** The project's framework preset; null is Vercel's "Other". */
|
|
21
|
-
framework: string | null;
|
|
22
|
-
/** `vercel.json`'s `framework`, which overrides the preset; undefined when it sets none. */
|
|
23
|
-
vercelJsonFramework?: string | null;
|
|
24
|
-
envs: EnvVarMeta[];
|
|
25
|
-
/** The API had more pages of variables than were read. */
|
|
26
|
-
truncated?: boolean;
|
|
27
|
-
};
|
|
28
|
-
/** What the Neon Vercel integration writes on every variable it creates. */
|
|
29
|
-
export declare const NEON_INTEGRATION_COMMENT = "The Neon Postgres integration sets this environment variable automatically";
|
|
30
|
-
/** Secrets a preview must hold its own value of, never production's (runbook §3). */
|
|
31
|
-
export declare const PREVIEW_OWN_SECRETS: readonly ["BETTER_AUTH_SECRET", "TOKEN_ENCRYPTION_KEY", "CRON_SECRET", "RESEND_API_KEY", "GOOGLE_CLIENT_SECRET"];
|
|
32
|
-
/** The metadata of one API variable; its value (and anything else) is not copied. */
|
|
33
|
-
export declare function envVarMeta(raw: unknown): EnvVarMeta;
|
|
34
|
-
/** Every check, on metadata alone. Sorted: errors, then warnings, then notes. */
|
|
35
|
-
export declare function audit(h: Hosting): Finding[];
|
|
36
|
-
/**
|
|
37
|
-
* The linked project (`.vercel/project.json`, written by `vercel link`), its preset and its variables' metadata from the Vercel API, and the app's `vercel.json`.
|
|
38
|
-
*/
|
|
39
|
-
export declare function readHosting(cli: Cli): Promise<Hosting>;
|
|
40
|
-
export declare function doctor(cli: Cli): Promise<number>;
|
package/dist/cli/doctor.js
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
// `stack doctor` — a read-only audit of the linked Vercel project's hosting setup: the framework preset, and the environment variables the stack depends on. Prints its findings, errors first, and exits non-zero when any is an error. Changes nothing.
|
|
2
|
-
//
|
|
3
|
-
// It reads metadata only — each variable's name, type, targets, id, git branch, and the integration fields (`configurationId`, `comment`) — through the Vercel REST API (`vercel api`), without `decrypt`. A value is dropped the moment the response is parsed, and never printed: whether Preview's DATABASE_URL is production's database can only be told from its value, so that one is left to `stack vercel-build`, which refuses it at build time.
|
|
4
|
-
import { readFileSync } from "node:fs";
|
|
5
|
-
import { join } from "node:path";
|
|
6
|
-
import { CliError } from "./context.js";
|
|
7
|
-
/** What the Neon Vercel integration writes on every variable it creates. */
|
|
8
|
-
export const NEON_INTEGRATION_COMMENT = "The Neon Postgres integration sets this environment variable automatically";
|
|
9
|
-
/** Secrets a preview must hold its own value of, never production's (runbook §3). */
|
|
10
|
-
export const PREVIEW_OWN_SECRETS = [
|
|
11
|
-
"BETTER_AUTH_SECRET",
|
|
12
|
-
"TOKEN_ENCRYPTION_KEY",
|
|
13
|
-
"CRON_SECRET",
|
|
14
|
-
"RESEND_API_KEY",
|
|
15
|
-
"GOOGLE_CLIENT_SECRET",
|
|
16
|
-
];
|
|
17
|
-
const RANK = { error: 0, warning: 1, info: 2 };
|
|
18
|
-
const str = (value) => typeof value === "string" && value !== "" ? value : undefined;
|
|
19
|
-
/** The metadata of one API variable; its value (and anything else) is not copied. */
|
|
20
|
-
export function envVarMeta(raw) {
|
|
21
|
-
const r = (raw ?? {});
|
|
22
|
-
const target = Array.isArray(r.target) ? r.target : r.target === undefined ? [] : [r.target];
|
|
23
|
-
return {
|
|
24
|
-
id: String(r.id ?? ""),
|
|
25
|
-
key: String(r.key ?? ""),
|
|
26
|
-
type: String(r.type ?? ""),
|
|
27
|
-
target: target.filter((t) => typeof t === "string"),
|
|
28
|
-
gitBranch: str(r.gitBranch),
|
|
29
|
-
configurationId: str(r.configurationId),
|
|
30
|
-
comment: str(r.comment),
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
/** Variables named `key` that apply to every deployment of `target`: no single git branch. */
|
|
34
|
-
const covering = (h, key, target) => h.envs.filter((v) => v.key === key && v.target.includes(target) && !v.gitBranch);
|
|
35
|
-
const fromNeonIntegration = (v) => (v.configurationId !== undefined && v.gitBranch !== undefined) ||
|
|
36
|
-
(v.comment?.includes(NEON_INTEGRATION_COMMENT) === true && v.target.includes("preview"));
|
|
37
|
-
/** Every check, on metadata alone. Sorted: errors, then warnings, then notes. */
|
|
38
|
-
export function audit(h) {
|
|
39
|
-
const findings = [];
|
|
40
|
-
const add = (severity, message) => findings.push({ severity, message });
|
|
41
|
-
const preset = h.framework ?? "Other";
|
|
42
|
-
if (h.vercelJsonFramework !== undefined && h.vercelJsonFramework !== "nextjs") {
|
|
43
|
-
add("error", `vercel.json sets "framework": ${JSON.stringify(h.vercelJsonFramework)}, which overrides the project's preset; set it to "nextjs".`);
|
|
44
|
-
}
|
|
45
|
-
else if (h.framework !== "nextjs") {
|
|
46
|
-
if (h.vercelJsonFramework === "nextjs") {
|
|
47
|
-
add("info", `The project's framework preset is ${preset}, but vercel.json's "framework": "nextjs" overrides it.`);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
add("error", `The project's framework preset is ${preset}, not Next.js, and vercel.json sets no framework: ` +
|
|
51
|
-
'Vercel will not serve the app as Next.js. Add "framework": "nextjs" to vercel.json ' +
|
|
52
|
-
"(or set the preset in Project Settings, Build and Deployment).");
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
const integration = h.envs.filter(fromNeonIntegration);
|
|
56
|
-
if (integration.length > 0) {
|
|
57
|
-
const names = [
|
|
58
|
-
...new Set(integration.map((v) => (v.gitBranch ? `${v.key} (${v.gitBranch})` : v.key))),
|
|
59
|
-
];
|
|
60
|
-
add("error", `The Neon Vercel integration is creating per-preview database variables: ${names.join(", ")}. ` +
|
|
61
|
-
"It cuts each preview's branch from production, copying production's data into previews. " +
|
|
62
|
-
"Turn off its preview branching (Vercel, Integrations, Neon), remove these variables, and " +
|
|
63
|
-
"point Preview at the shared `preview` branch: `stack neon reset-preview --set-vercel`.");
|
|
64
|
-
}
|
|
65
|
-
for (const key of PREVIEW_OWN_SECRETS) {
|
|
66
|
-
const shared = h.envs.filter((v) => v.key === key && v.target.includes("production") && v.target.includes("preview"));
|
|
67
|
-
if (shared.length > 0) {
|
|
68
|
-
add("warning", `${key} is one variable for Production and Preview: give Preview its own value, so a ` +
|
|
69
|
-
"preview can never use production's.");
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
for (const target of ["production", "preview", "development"]) {
|
|
73
|
-
if (covering(h, "PRODUCTION_DATABASE_HOST", target).length === 0) {
|
|
74
|
-
add(target === "development" ? "warning" : "error", `PRODUCTION_DATABASE_HOST is not set for ${target}: set production's direct host (not a ` +
|
|
75
|
-
"secret) in every environment, so builds and local tooling can refuse production." +
|
|
76
|
-
(target === "preview" ? " `stack vercel-build` refuses a preview build without it." : ""));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
if (covering(h, "DATABASE_URL_UNPOOLED", "production").length === 0) {
|
|
80
|
-
add("warning", "DATABASE_URL_UNPOOLED is not set for Production, so migrations run through the pooler. " +
|
|
81
|
-
"Set it to production's direct (non -pooler) URL.");
|
|
82
|
-
}
|
|
83
|
-
if (covering(h, "DATABASE_URL", "preview").length === 0) {
|
|
84
|
-
add("error", "Preview has no DATABASE_URL, so every preview build fails. Run `stack neon reset-preview " +
|
|
85
|
-
"--set-vercel` to point Preview at the shared `preview` branch.");
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
add("info", "Whether Preview's DATABASE_URL is production's database can only be told from its value, " +
|
|
89
|
-
"which doctor never reads; `stack vercel-build` refuses that at build time.");
|
|
90
|
-
}
|
|
91
|
-
if (h.truncated) {
|
|
92
|
-
add("info", "The project has more variables than one API page; only the first was checked.");
|
|
93
|
-
}
|
|
94
|
-
return findings.sort((a, b) => RANK[a.severity] - RANK[b.severity]);
|
|
95
|
-
}
|
|
96
|
-
/** Runs `vercel api <path>`; a failure names the endpoint and exit code, never the response. */
|
|
97
|
-
async function vercelApi(cli, path) {
|
|
98
|
-
const { stdout, code } = await cli.exec("vercel", ["api", path, "--raw"]);
|
|
99
|
-
if (code !== 0) {
|
|
100
|
-
throw new CliError(`vercel api ${path.split("?")[0]} failed (exit ${code}). Is the Vercel CLI signed in (\`vercel login\`)?`);
|
|
101
|
-
}
|
|
102
|
-
try {
|
|
103
|
-
return JSON.parse(stdout);
|
|
104
|
-
}
|
|
105
|
-
catch {
|
|
106
|
-
throw new CliError(`vercel api ${path.split("?")[0]} did not answer with JSON.`);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
/** A JSON file's object, or undefined when there is no such file. */
|
|
110
|
-
function readJsonFile(path) {
|
|
111
|
-
let text;
|
|
112
|
-
try {
|
|
113
|
-
text = readFileSync(path, "utf8");
|
|
114
|
-
}
|
|
115
|
-
catch (error) {
|
|
116
|
-
if (error.code === "ENOENT")
|
|
117
|
-
return undefined;
|
|
118
|
-
throw error;
|
|
119
|
-
}
|
|
120
|
-
try {
|
|
121
|
-
return JSON.parse(text);
|
|
122
|
-
}
|
|
123
|
-
catch {
|
|
124
|
-
throw new CliError(`${path} is not valid JSON.`);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* The linked project (`.vercel/project.json`, written by `vercel link`), its preset and its variables' metadata from the Vercel API, and the app's `vercel.json`.
|
|
129
|
-
*/
|
|
130
|
-
export async function readHosting(cli) {
|
|
131
|
-
const link = readJsonFile(join(cli.cwd, ".vercel", "project.json"));
|
|
132
|
-
if (!link) {
|
|
133
|
-
throw new CliError("this directory is not linked to a Vercel project: run `vercel link`.");
|
|
134
|
-
}
|
|
135
|
-
const projectId = str(link.projectId);
|
|
136
|
-
if (!projectId)
|
|
137
|
-
throw new CliError(".vercel/project.json has no projectId: run `vercel link`.");
|
|
138
|
-
const orgId = str(link.orgId);
|
|
139
|
-
const query = orgId?.startsWith("team_") ? `?teamId=${encodeURIComponent(orgId)}` : "";
|
|
140
|
-
const id = encodeURIComponent(projectId);
|
|
141
|
-
const project = await vercelApi(cli, `/v9/projects/${id}${query}`);
|
|
142
|
-
const listed = await vercelApi(cli, `/v10/projects/${id}/env${query}`);
|
|
143
|
-
const rawEnvs = Array.isArray(listed.envs) ? listed.envs : [];
|
|
144
|
-
const next = listed.pagination?.next;
|
|
145
|
-
const vercelJson = readJsonFile(join(cli.cwd, "vercel.json")) ?? {};
|
|
146
|
-
return {
|
|
147
|
-
project: str(project.name) ?? projectId,
|
|
148
|
-
framework: str(project.framework) ?? null,
|
|
149
|
-
vercelJsonFramework: "framework" in vercelJson ? (vercelJson.framework ?? null) : undefined,
|
|
150
|
-
envs: rawEnvs.map(envVarMeta),
|
|
151
|
-
truncated: next !== undefined && next !== null,
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
export async function doctor(cli) {
|
|
155
|
-
const hosting = await readHosting(cli);
|
|
156
|
-
const findings = audit(hosting);
|
|
157
|
-
cli.log(`[doctor] ${hosting.project}: ${hosting.envs.length} environment variables checked`);
|
|
158
|
-
for (const { severity, message } of findings)
|
|
159
|
-
cli.log(`${severity.padEnd(7)} ${message}`);
|
|
160
|
-
const count = (s) => findings.filter((f) => f.severity === s).length;
|
|
161
|
-
const errors = count("error");
|
|
162
|
-
const warnings = count("warning");
|
|
163
|
-
cli.log(`[doctor] ${errors} error${errors === 1 ? "" : "s"}, ${warnings} warning${warnings === 1 ? "" : "s"}` +
|
|
164
|
-
(errors > 0 ? ": fix the errors before the next deploy." : "."));
|
|
165
|
-
return errors > 0 ? 1 : 0;
|
|
166
|
-
}
|