create-jant 0.3.25 → 0.3.26
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.js +1 -1
- package/package.json +1 -1
- package/template/wrangler.toml +6 -2
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import path from "path";
|
|
|
9
9
|
import { fileURLToPath } from "url";
|
|
10
10
|
var __filename = fileURLToPath(import.meta.url);
|
|
11
11
|
var __dirname = path.dirname(__filename);
|
|
12
|
-
var CORE_VERSION = "0.3.
|
|
12
|
+
var CORE_VERSION = "0.3.26";
|
|
13
13
|
var TEMPLATE_DIR = fs.existsSync(path.resolve(__dirname, "../template")) ? path.resolve(__dirname, "../template") : path.resolve(__dirname, "../../../templates/jant-site");
|
|
14
14
|
function isValidProjectName(name) {
|
|
15
15
|
return /^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/.test(name);
|
package/package.json
CHANGED
package/template/wrangler.toml
CHANGED
|
@@ -30,13 +30,17 @@ SITE_URL = ""
|
|
|
30
30
|
# Optional: Timeline page size (default: 20)
|
|
31
31
|
# PAGE_SIZE = "5"
|
|
32
32
|
|
|
33
|
-
#
|
|
33
|
+
# Recommended: R2 public URL for media access
|
|
34
|
+
# Without this, media files are proxied through your Worker (slower, uses more CPU).
|
|
35
|
+
# With this, media is served directly from Cloudflare's CDN (faster, lower cost).
|
|
36
|
+
# Set up: Cloudflare Dashboard → R2 → Your Bucket → Settings → Public access
|
|
34
37
|
# R2_PUBLIC_URL = "https://cdn.example.com"
|
|
35
38
|
R2_PUBLIC_URL = "https://demo-media.jant.me" # @create-jant: @remove
|
|
36
39
|
|
|
37
40
|
# Optional: Cloudflare Image Transformations
|
|
38
41
|
# For automatic thumbnail generation and image optimization
|
|
39
|
-
#
|
|
42
|
+
# Use the same domain as R2_PUBLIC_URL (or SITE_URL if R2_PUBLIC_URL is not set)
|
|
43
|
+
# IMAGE_TRANSFORM_URL = "https://media.yourdomain.com/cdn-cgi/image"
|
|
40
44
|
|
|
41
45
|
# Optional: Demo mode (pre-fill sign-in credentials)
|
|
42
46
|
# DEMO_EMAIL = "demo@example.com"
|