create-nextly-app 0.0.2-alpha.35 → 0.0.2-alpha.39

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/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from 'module';
2
- export { createNextly } from './chunk-C5CWOU22.mjs';
2
+ export { createNextly } from './chunk-DDQB5KOQ.mjs';
3
3
 
4
4
  createRequire(import.meta.url);
5
5
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nextly-app",
3
- "version": "0.0.2-alpha.35",
3
+ "version": "0.0.2-alpha.39",
4
4
  "description": "CLI to scaffold Nextly in your Next.js project",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -29,22 +29,22 @@
29
29
  "fs-extra": "^11.3.0",
30
30
  "ora": "^9.0.0",
31
31
  "picocolors": "^1.1.1",
32
- "tar": "^7.4.0"
32
+ "tar": "^7.5.19"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/fs-extra": "^11.0.4",
36
36
  "@types/node": "^20.19.17",
37
37
  "@types/tar": "^6.1.13",
38
- "@vitest/coverage-v8": "^4.0.8",
39
- "@vitest/ui": "^4.0.8",
38
+ "@vitest/coverage-v8": "^4.1.0",
39
+ "@vitest/ui": "^4.1.0",
40
40
  "eslint": "^9.39.1",
41
41
  "tsup": "^8.5.0",
42
42
  "typescript": "^5.9.3",
43
43
  "vite-tsconfig-paths": "^5.1.4",
44
- "vitest": "^4.0.8",
45
- "@nextlyhq/eslint-config": "0.0.2-alpha.35",
46
- "@nextlyhq/telemetry": "0.0.2-alpha.35",
47
- "@nextlyhq/tsconfig": "0.0.2-alpha.35"
44
+ "vitest": "^4.1.0",
45
+ "@nextlyhq/eslint-config": "0.0.2-alpha.39",
46
+ "@nextlyhq/telemetry": "0.0.2-alpha.39",
47
+ "@nextlyhq/tsconfig": "0.0.2-alpha.39"
48
48
  },
49
49
  "engines": {
50
50
  "node": ">=20.0.0"
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Admin Media API — permission-gated management surface.
3
+ *
4
+ * The admin's session cookie is scoped to `/admin`, so it reaches here but not
5
+ * the public `/api/media`. Every operation is checked against a media
6
+ * permission (read/create/update/delete-media) and the acting identity is
7
+ * taken from the session/API key, never a request field. This is the only
8
+ * place media can be uploaded, edited, moved or deleted.
9
+ *
10
+ * Supported (all gated):
11
+ * - GET/POST/PATCH/DELETE /admin/api/media/* (files, folders, bulk delete)
12
+ */
13
+
14
+ import { createMediaHandlers } from "nextly/api/media-handlers";
15
+
16
+ import config from "@nextly-config";
17
+
18
+ const handlers = createMediaHandlers({
19
+ config,
20
+ requireAuth: true,
21
+ });
22
+
23
+ export const GET = handlers.GET;
24
+ export const POST = handlers.POST;
25
+ export const PATCH = handlers.PATCH;
26
+ export const DELETE = handlers.DELETE;
@@ -20,6 +20,7 @@
20
20
  ],
21
21
  "paths": {
22
22
  "@/*": ["./src/*"],
23
+ "@/components/*": ["./src/app/(frontend)/components/*"],
23
24
  "@nextly-config": ["./nextly.config.ts"]
24
25
  }
25
26
  },