@veriforms/webapp-vite 0.1.0 → 0.1.1
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/README.md +4 -3
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,9 +40,10 @@ export default defineConfig({ plugins: [veriformsWebApp({ title: 'Room booking',
|
|
|
40
40
|
other hosts fail the build with the file and line — the server would refuse them anyway.
|
|
41
41
|
|
|
42
42
|
- `src/server/` (server functions) — **a pilot for platform administrators only**: a project with the
|
|
43
|
-
folder builds only with `veriformsWebApp({ serverFunctions: true })`, and the gateway takes
|
|
44
|
-
result only from a platform administrator
|
|
45
|
-
|
|
43
|
+
folder builds only with `veriformsWebApp({ serverFunctions: true })`, and the gateway takes and
|
|
44
|
+
releases the result only from a platform administrator — for a web app in any account, customer
|
|
45
|
+
accounts included (owner decision 2026-12-03) — while the platform has server functions on (off in
|
|
46
|
+
production). The app's owner cannot release a version with `server/` themselves. Each file is a function file (a `_` file or folder is shared
|
|
46
47
|
code); it is built to `vf-build/server/<path>.js`, camelCase exports are served under kebab-case
|
|
47
48
|
routes (`placeOrder` → `place-order`), and `vf-build/server-manifest.json` is the manifest the
|
|
48
49
|
gateway reads from the same built code. No page may import from `src/server/`, whatever the option.
|
package/dist/index.js
CHANGED
|
@@ -93,8 +93,8 @@ export function serverDirProblem(root, enabled = false) {
|
|
|
93
93
|
const dir = path.resolve(root, SERVER_DIR);
|
|
94
94
|
return fs.existsSync(dir) && !enabled
|
|
95
95
|
? `[veriforms] ${SERVER_DIR}/ is reserved for server functions, and ${SERVER_NOT_ENABLED}. `
|
|
96
|
-
+ 'Server functions are a pilot for platform administrators:
|
|
97
|
-
+ 'veriformsWebApp({ serverFunctions: true }) in vite.config.ts — for everyone else the upload is refused. '
|
|
96
|
+
+ 'Server functions are a pilot for platform administrators: only a platform administrator may push and release them '
|
|
97
|
+
+ '(for a web app in any account), with veriformsWebApp({ serverFunctions: true }) in vite.config.ts — for everyone else the upload is refused. '
|
|
98
98
|
+ `Otherwise move code the pages use to another folder under src/ and remove ${SERVER_DIR}/.`
|
|
99
99
|
: undefined;
|
|
100
100
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veriforms/webapp-vite",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "The Vite plugin for VeriForms web apps built in code: one entry per page, HTML shells the gateway serves, React from the platform, readable output, and the checks the server would refuse anyway — at build time.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"veriforms",
|