@fougere/admin 0.13.0-alpha.0 → 0.14.0-alpha.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fougere/admin",
3
- "version": "0.13.0-alpha.0",
3
+ "version": "0.14.0-alpha.0",
4
4
  "description": "A back-office derived from what the app already says it hosts — a react-admin DataProvider over the Fougere wire.",
5
5
  "keywords": [
6
6
  "fougere",
@@ -36,9 +36,9 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@dagrejs/dagre": "^3.1.1",
39
- "@fougere/app": "0.13.0-alpha.0",
40
- "@fougere/core": "0.13.0-alpha.0",
41
- "@fougere/schema": "0.13.0-alpha.0"
39
+ "@fougere/app": "0.14.0-alpha.0",
40
+ "@fougere/core": "0.14.0-alpha.0",
41
+ "@fougere/schema": "0.14.0-alpha.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@mui/material": "^9.3.1",
@@ -14,6 +14,7 @@
14
14
  "react-dom": "^19.0.0"
15
15
  },
16
16
  "devDependencies": {
17
+ "@fougere/vite": "latest",
17
18
  "@types/react": "^19.0.0",
18
19
  "@types/react-dom": "^19.0.0",
19
20
  "@vitejs/plugin-react": "^5.0.0",
@@ -10,8 +10,8 @@ import { createRoot } from 'react-dom/client';
10
10
  import { FougereAdmin } from '@fougere/admin/react';
11
11
 
12
12
  /**
13
- * No `endpoint`, so it stays `/_fougere/call` — a relative address the dev proxy in
14
- * `vite.config.ts` forwards to the app next door.
13
+ * No `endpoint`, so it stays `/_fougere/call` — the dev server answers there itself, through
14
+ * `fougere()` in `vite.config.ts`.
15
15
  *
16
16
  * The integrated shape is the same component with nothing changed at all: mount it on a route
17
17
  * of the app that serves the frond, and same-origin does the rest. Standalone against another
@@ -1,16 +1,13 @@
1
1
  import { defineConfig } from 'vite';
2
+ import { fougere } from '@fougere/vite';
2
3
  import react from '@vitejs/plugin-react';
3
4
 
4
5
  /**
5
- * No `@fougere/vite` here: this app scans nothing and boots nothing. It is a reader of one
6
- * endpoint, and the only thing it needs is a way to reach it without crossing an origin.
7
- *
8
- * Point the proxy at whichever app serves your frond. In production the two are usually
9
- * behind one host, and this block goes away.
6
+ * The admin reads the identity card at `/_fougere/call`, and `fougere()` answers there: the dev
7
+ * server boots the app from `fougere.config.ts`, so `fronds:` decides whether a frond answers in
8
+ * this process or a process away.
10
9
  */
11
10
  export default defineConfig({
12
- plugins: [react()],
13
- server: {
14
- proxy: { '/_fougere': 'http://localhost:3000' },
15
- },
11
+ // Fronds are shared at the workspace root, two levels up from apps/<name>.
12
+ plugins: [fougere({ root: '../..' }), react()],
16
13
  });