@lolyjs/core 0.2.0-alpha.22 → 0.2.0-alpha.23

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.
Files changed (2) hide show
  1. package/README.md +16 -20
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -443,11 +443,13 @@ Both files will be automatically available at `/sitemap.xml` and `/robots.txt` r
443
443
  **Configuration:**
444
444
  The static directory can be customized in `loly.config.ts`:
445
445
  ```tsx
446
+ import type { FrameworkConfig } from "@lolyjs/core";
447
+
446
448
  export default {
447
449
  directories: {
448
450
  static: "public", // Default: "public"
449
451
  },
450
- } satisfies FrameworkConfig;
452
+ } satisfies Partial<FrameworkConfig>;
451
453
  ```
452
454
 
453
455
  ### 🔌 API Routes
@@ -913,30 +915,24 @@ export default function Navigation() {
913
915
  Create `loly.config.ts` in your project root to configure the framework:
914
916
 
915
917
  ```tsx
916
- import { FrameworkConfig } from "@lolyjs/core";
918
+ import type { FrameworkConfig } from "@lolyjs/core";
917
919
 
920
+ // Option 1: Partial config (only specify what you want to change)
918
921
  export default {
919
922
  directories: {
920
- app: "app",
921
- build: ".loly",
922
923
  static: "public",
923
924
  },
924
- server: {
925
- port: 3000,
926
- host: "localhost",
927
- },
928
- routing: {
929
- trailingSlash: "ignore",
930
- caseSensitive: false,
931
- basePath: "",
932
- },
933
- rendering: {
934
- framework: "react",
935
- streaming: true,
936
- ssr: true,
937
- ssg: true,
938
- },
939
- } satisfies FrameworkConfig;
925
+ } satisfies Partial<FrameworkConfig>;
926
+
927
+ // Option 2: Full config (for strict validation)
928
+ // export default {
929
+ // directories: { app: "app", build: ".loly", static: "public" },
930
+ // conventions: { /* ... */ },
931
+ // routing: { /* ... */ },
932
+ // build: { /* ... */ },
933
+ // server: { adapter: "express", port: 3000, host: "localhost" },
934
+ // rendering: { framework: "react", streaming: true, ssr: true, ssg: true },
935
+ // } satisfies FrameworkConfig;
940
936
  ```
941
937
 
942
938
  ### Server Configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lolyjs/core",
3
- "version": "0.2.0-alpha.22",
3
+ "version": "0.2.0-alpha.23",
4
4
  "author": {
5
5
  "name": "Valentin Menvielle Candia",
6
6
  "url": "https://github.com/MenvielleValen"