create-apollo-monorepo 0.9.12 → 0.9.14
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/index.mjs +2 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -262,7 +262,7 @@ function createPrompt() {
|
|
|
262
262
|
return { ask, close };
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
async function gatherEnv(flags
|
|
265
|
+
async function gatherEnv(flags) {
|
|
266
266
|
let dbUrl = flags.db;
|
|
267
267
|
// NEXT_PUBLIC_SITE_URL is intentionally NOT prompted. Apollo CMS resolves
|
|
268
268
|
// the public origin in this priority order: NEXT_PUBLIC_SITE_URL >
|
|
@@ -1991,8 +1991,7 @@ async function main() {
|
|
|
1991
1991
|
// ── Step 2: Gather env ──
|
|
1992
1992
|
step(2, "Configuring environment");
|
|
1993
1993
|
const adminPrefix =normalizeAdminPrefix(flags.adminPrefix);
|
|
1994
|
-
const
|
|
1995
|
-
const { dbUrl, siteUrl, locale } = await gatherEnv(flags, { singleOrigin });
|
|
1994
|
+
const { dbUrl, siteUrl, locale } = await gatherEnv(flags);
|
|
1996
1995
|
const authSecret = randomBytes(48).toString("base64");
|
|
1997
1996
|
// Required by apollo-cms's /api/cron route and scripts/dev-cron.ts in dev.
|
|
1998
1997
|
// Without it the dev cron loop hits 403 "CRON_SECRET not configured".
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-apollo-monorepo",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.14",
|
|
4
4
|
"description": "Scaffold a monorepo with a frontend app and Apollo CMS as a git submodule backend (single-origin via Next.js rewrites + assetPrefix)",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-apollo-monorepo": "index.mjs"
|