fimo 0.16.0-staging.1 → 0.16.0-staging.3

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.
@@ -1,6 +1,9 @@
1
+ import { env as publicEnv } from '$env/dynamic/public';
1
2
  import { requireContentApiUrl } from '../content/client/runtime.js';
2
3
  function resolveApiUrl(apiUrl) {
3
- return apiUrl ?? (typeof process === 'undefined' ? undefined : process.env.PUBLIC_FIMO_API_URL);
4
+ return (apiUrl ??
5
+ publicEnv.PUBLIC_FIMO_API_URL ??
6
+ (typeof process === 'undefined' ? undefined : process.env.PUBLIC_FIMO_API_URL));
4
7
  }
5
8
  export function createSvelteKitContentRuntime(options) {
6
9
  const apiUrl = resolveApiUrl(options.apiUrl);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fimo",
3
- "version": "0.16.0-staging.1",
3
+ "version": "0.16.0-staging.3",
4
4
  "description": "Fimo CLI - create, deploy, and manage Fimo projects",
5
5
  "bin": {
6
6
  "fimo": "dist/cli/index.js"
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "astro dev",
8
- "build": "astro build",
8
+ "build": "fimo validate --json && astro build",
9
9
  "check": "astro sync && astro check"
10
10
  },
11
11
  "dependencies": {
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "next dev",
8
- "build": "next build",
8
+ "build": "fimo validate --json && next build",
9
9
  "start": "next start",
10
10
  "lint": "oxlint --deny-warnings",
11
11
  "typecheck": "next typegen && tsc --noEmit"
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "react-router dev --port 5173",
8
- "build": "tsc --noEmit && react-router build && fimo export-static",
8
+ "build": "fimo validate --json && tsc --noEmit && react-router build && fimo export-static",
9
9
  "lint": "oxlint --deny-warnings",
10
10
  "typecheck": "tsc --noEmit",
11
11
  "preview": "vite preview --host 0.0.0.0 --port 4173"
@@ -21,7 +21,7 @@
21
21
  "cmdk": "^1.1.1",
22
22
  "date-fns": "^4.1.0",
23
23
  "embla-carousel-react": "^8.6.0",
24
- "fimo": "0.16.0-staging.1",
24
+ "fimo": "0.16.0-staging.3",
25
25
  "input-otp": "^1.4.2",
26
26
  "isbot": "^5",
27
27
  "lucide-react": "^0.577.0",
@@ -7,4 +7,4 @@
7
7
 
8
8
  allowBuilds:
9
9
  esbuild: true
10
- fimo: true
10
+ fimo: true
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite dev",
8
- "build": "vite build",
8
+ "build": "fimo validate --json && vite build",
9
9
  "preview": "vite preview",
10
10
  "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
11
11
  "prepare": "svelte-kit sync"