create-nextly-app 0.0.2-alpha.74 → 0.0.2-alpha.76
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-ChHdzG83.mjs → create-nextly-BmGN2BX8.mjs} +119 -3
- package/dist/create-nextly-BmGN2BX8.mjs.map +1 -0
- package/dist/{create-nextly-Decg8dye.cjs → create-nextly-CXsN4jfA.cjs} +119 -3
- package/dist/create-nextly-CXsN4jfA.cjs.map +1 -0
- 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 +70 -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/dist/create-nextly-ChHdzG83.mjs.map +0 -1
- package/dist/create-nextly-Decg8dye.cjs.map +0 -1
- package/templates/plugin/dev/src/app/admin/[[...params]]/layout.tsx +0 -24
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { connection } from "next/server";
|
|
2
|
-
import { Suspense } from "react";
|
|
3
|
-
|
|
4
|
-
export default function AdminLayout({
|
|
5
|
-
children,
|
|
6
|
-
}: {
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
}) {
|
|
9
|
-
return (
|
|
10
|
-
<Suspense fallback={null}>
|
|
11
|
-
<ForThisRequest>{children}</ForThisRequest>
|
|
12
|
-
</Suspense>
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* The admin renders for each request, never from a cache another user's
|
|
18
|
-
* request filled. Beneath the layout's Suspense boundary, so under Cache
|
|
19
|
-
* Components the rest of the page still prerenders.
|
|
20
|
-
*/
|
|
21
|
-
async function ForThisRequest({ children }: { children: React.ReactNode }) {
|
|
22
|
-
await connection();
|
|
23
|
-
return children;
|
|
24
|
-
}
|