Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/three-lands-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"studiocms": minor
---

Implements new Effect-based config schemas
34 changes: 34 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
],
"words": [
"Adammatthiesen",
"adidxbot",
"Applebot",
"artipacked",
"astrocms",
"astrodb",
Expand All @@ -21,16 +23,22 @@
"astrostudiocms",
"asynchttp",
"automations",
"Baiduspider",
"bingbot",
"bluwy",
"Bublup",
"buildkit",
"bundletests",
"carryforward",
"cellspacing",
"Cliqzbot",
"CMSAPI",
"CMSMD",
"CMSO",
"CMSSDK",
"cnpm",
"coccoc",
"coccocbot",
"codegen",
"cohttp",
"columnname",
Expand All @@ -39,6 +47,7 @@
"corevitals",
"createfolder",
"createpage",
"Daumoa",
"dedented",
"dedents",
"deepmerge",
Expand All @@ -54,16 +63,25 @@
"effectful",
"effectify",
"esbuild",
"Eurip",
"examplegriditem",
"Exploratodo",
"extname",
"facebookcatalog",
"facebookexternalhit",
"Facebot",
"favicons",
"Feedly",
"Feelback",
"feelbacks",
"Findxbot",
"flac",
"flatcoloricons",
"foldertree",
"frontmatter",
"giget",
"gooblog",
"Googlebot",
"grapesjs",
"haveaccount",
"headlesscms",
Expand All @@ -73,11 +91,14 @@
"httpclient",
"httpx",
"httr",
"ichiro",
"iconify",
"Ilshidur",
"inox",
"Insertable",
"istellabot",
"jdtjenkins",
"Jike",
"johndoe",
"katex",
"kevinzunigacuellar",
Expand All @@ -94,18 +115,22 @@
"loginsignup",
"Lookin",
"lunariajs",
"Lycos",
"magicast",
"Markdoc",
"Matthiesen",
"mdast",
"Mediapartners",
"mergebot",
"mgmt",
"Millis",
"Mngmt",
"Mojeek",
"Monaspace",
"mondeja",
"mopts",
"mrmime",
"msnbot",
"mycomponent",
"myplugin",
"mystudiocms",
Expand Down Expand Up @@ -135,10 +160,12 @@
"peaceiris",
"pkey",
"plpgsql",
"Plukkie",
"premajor",
"Previewable",
"prototools",
"Proxified",
"Qwantify",
"recalc",
"recentlycreated",
"recentlycreatedpages",
Expand All @@ -156,6 +183,7 @@
"restmethod",
"restsharp",
"robotstxt",
"Schemanam",
"schemaname",
"SCMS",
"SDKAPI",
Expand All @@ -165,6 +193,8 @@
"signup",
"simpleicons",
"sitemapindex",
"Sogou",
"Sosospider",
"stefanzweifel",
"strikethrough",
"studiocms",
Expand All @@ -185,6 +215,7 @@
"tspc",
"TTFB",
"turso",
"Twitterbot",
"twoslash",
"typeclass",
"ultrahtml",
Expand All @@ -208,7 +239,10 @@
"withastro",
"withstudiocms",
"WPAPI",
"yacybot",
"Yioop",
"yocto",
"Youdao",
"yourname",
"YYMMDDMM",
"YYYYMMDDTHHMMSS",
Expand Down
8 changes: 8 additions & 0 deletions packages/studiocms/src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
availablePermissionRanks,
} from '@withstudiocms/auth-kit/types';
import type { AstroConfig } from 'astro';
import { Duration } from 'effect';
import type { RobotsConfig } from './integrations/robots/schema.js';
import type { TimeString } from './schemas/config/sdk.js';
import { stripIconify } from './utils/stripIconify.js';
Expand Down Expand Up @@ -56,6 +57,13 @@ export const TemplateConfigId: string = 'SCMS_EMAIL_TEMPLATES_1';
*/
export const defaultCacheLifeTime: TimeString = '5m';

/**
* Utility Constant for Default Cache Lifetime
*
* This constant represents the default cache lifetime as a Duration object, which can be used throughout the codebase for consistency when referring to the default cache lifetime.
*/
export const DefaultCacheLifetime = Duration.minutes(5);

/**
* Utility Constant for One Day in Milliseconds
*
Expand Down
Loading
Loading