create-nextly-app 0.0.2-alpha.74 → 0.0.2-alpha.75
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/dist/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/{create-nextly-Decg8dye.cjs → create-nextly-DdIL2e9E.cjs} +19 -2
- package/dist/{create-nextly-Decg8dye.cjs.map → create-nextly-DdIL2e9E.cjs.map} +1 -1
- package/dist/{create-nextly-ChHdzG83.mjs → create-nextly-N_COehCu.mjs} +19 -2
- package/dist/{create-nextly-ChHdzG83.mjs.map → create-nextly-N_COehCu.mjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
- package/skills/nextly-authentication/SKILL.md +1 -1
- package/skills/nextly-collections/SKILL.md +1 -1
- package/skills/nextly-deploy/SKILL.md +1 -1
- package/skills/nextly-install/SKILL.md +1 -1
- package/templates/base/src/app/admin/[[...params]]/layout.tsx +58 -14
- package/templates/base/src/types/generated/plugin-admin-imports.generated.ts +2 -0
- package/templates/blank/src/instrumentation.ts +4 -1
- package/templates/plugin/AGENTS.md.template +2 -2
- package/templates/plugin/dev/src/instrumentation.ts +4 -1
- package/templates/plugin/dev/src/types/generated/plugin-admin-imports.generated.ts +2 -2
- package/templates/plugin/src/admin/index.ts +4 -14
- package/templates/plugin/dev/src/app/admin/[[...params]]/layout.tsx +0 -24
package/dist/cli.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_create_nextly = require("./create-nextly-
|
|
3
|
+
const require_create_nextly = require("./create-nextly-DdIL2e9E.cjs");
|
|
4
4
|
// ../../node_modules/.pnpm/commander@14.0.2/node_modules/commander/lib/error.js
|
|
5
5
|
var require_error = /* @__PURE__ */ require_create_nextly.__commonJSMin(((exports) => {
|
|
6
6
|
/**
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as getAvailableTemplateNames, c as init, d as __require, f as __toESM, i as validateTemplateName, l as shutdown, n as resolveProjectArg, o as packageVersion, r as validateProjectName, s as capture, t as createNextly, u as __commonJSMin } from "./create-nextly-
|
|
2
|
+
import { a as getAvailableTemplateNames, c as init, d as __require, f as __toESM, i as validateTemplateName, l as shutdown, n as resolveProjectArg, o as packageVersion, r as validateProjectName, s as capture, t as createNextly, u as __commonJSMin } from "./create-nextly-N_COehCu.mjs";
|
|
3
3
|
// ../../node_modules/.pnpm/commander@14.0.2/node_modules/commander/lib/error.js
|
|
4
4
|
var require_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
5
|
/**
|
|
@@ -42579,15 +42579,27 @@ const REQUIRE_IMPORT = "import { createRequire } from \"node:module\";";
|
|
|
42579
42579
|
const requireDeclaration = (createRequireName) => `// Resolves Nextly's cache handlers from this app's node_modules.
|
|
42580
42580
|
const require = ${createRequireName}(import.meta.url);`;
|
|
42581
42581
|
const REQUIRE_DECLARATION = requireDeclaration("createRequire");
|
|
42582
|
+
/** Where a new app's config takes the crawlers that wait for the whole head. */
|
|
42583
|
+
const HTML_LIMITED_BOTS_IMPORT = "import { nextlyHtmlLimitedBots } from \"nextly/next\";";
|
|
42584
|
+
/**
|
|
42585
|
+
* The crawlers answered with each page's whole head in the first HTML rather
|
|
42586
|
+
* than streamed it: Next.js's own list, the main Googlebot and the AI
|
|
42587
|
+
* crawlers (`nextlyHtmlLimitedBots`).
|
|
42588
|
+
*/
|
|
42589
|
+
const HTML_LIMITED_BOTS_LINE = ` // Search engines and AI crawlers read each page's whole head in the first
|
|
42590
|
+
// HTML, rather than metadata streamed in after it.
|
|
42591
|
+
htmlLimitedBots: nextlyHtmlLimitedBots,`;
|
|
42582
42592
|
/**
|
|
42583
42593
|
* Render a complete next.config.ts file for the selected database.
|
|
42584
42594
|
*/
|
|
42585
42595
|
function buildNextConfigTemplate(database) {
|
|
42586
42596
|
return `import type { NextConfig } from "next";
|
|
42597
|
+
${HTML_LIMITED_BOTS_IMPORT}
|
|
42587
42598
|
|
|
42588
42599
|
const nextConfig: NextConfig = {
|
|
42589
42600
|
${CACHE_COMPONENTS_ON}
|
|
42590
42601
|
serverExternalPackages: ${packageListLiteral(database)},
|
|
42602
|
+
${HTML_LIMITED_BOTS_LINE}
|
|
42591
42603
|
};
|
|
42592
42604
|
|
|
42593
42605
|
export default nextConfig;
|
|
@@ -42596,6 +42608,7 @@ export default nextConfig;
|
|
|
42596
42608
|
/** The same config as a JavaScript module, for an app without TypeScript. */
|
|
42597
42609
|
function buildNextConfigModule(database) {
|
|
42598
42610
|
return `${REQUIRE_IMPORT}
|
|
42611
|
+
${HTML_LIMITED_BOTS_IMPORT}
|
|
42599
42612
|
|
|
42600
42613
|
${REQUIRE_DECLARATION}
|
|
42601
42614
|
|
|
@@ -42603,6 +42616,7 @@ ${REQUIRE_DECLARATION}
|
|
|
42603
42616
|
const nextConfig = {
|
|
42604
42617
|
${CACHE_COMPONENTS_ON}
|
|
42605
42618
|
serverExternalPackages: ${packageListLiteral(database)},
|
|
42619
|
+
${HTML_LIMITED_BOTS_LINE}
|
|
42606
42620
|
};
|
|
42607
42621
|
|
|
42608
42622
|
export default nextConfig;
|
|
@@ -48134,9 +48148,12 @@ function startNextly(configImport) {
|
|
|
48134
48148
|
// Next.js writes its Cache Components setting into this file as it builds
|
|
48135
48149
|
// it. Nextly, loaded from node_modules, cannot read that for itself. With
|
|
48136
48150
|
// it off, Nextly warns at start; with it on, a cached read that finds no
|
|
48137
|
-
// "use cache" read function says so.
|
|
48151
|
+
// "use cache" read function says so. The same holds for the build's newest
|
|
48152
|
+
// migration, which withNextly sets: a production start compares it with
|
|
48153
|
+
// the database's schema version and warns when the database is behind.
|
|
48138
48154
|
await createRegister(config, {
|
|
48139
48155
|
cacheComponents: process.env.__NEXT_CACHE_COMPONENTS,
|
|
48156
|
+
buildSchemaVersion: process.env.NEXTLY_BUILD_SCHEMA_VERSION,
|
|
48140
48157
|
})();`;
|
|
48141
48158
|
}
|
|
48142
48159
|
/** The whole hook, as the blank template ships it. */
|
|
@@ -53150,4 +53167,4 @@ Object.defineProperty(exports, "validateTemplateName", {
|
|
|
53150
53167
|
}
|
|
53151
53168
|
});
|
|
53152
53169
|
|
|
53153
|
-
//# sourceMappingURL=create-nextly-
|
|
53170
|
+
//# sourceMappingURL=create-nextly-DdIL2e9E.cjs.map
|