@base44-preview/cli 0.0.38-pr.370.7812daf → 0.0.38-pr.370.a181654
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 +0 -31
- package/dist/cli/index.js +6 -6
- package/dist/cli/index.js.map +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -96,34 +96,3 @@ Found a bug? [Open an issue](https://github.com/base44/cli/issues).
|
|
|
96
96
|
## License
|
|
97
97
|
|
|
98
98
|
MIT
|
|
99
|
-
|
|
100
|
-
## Configuration reference
|
|
101
|
-
|
|
102
|
-
The `base44/config.jsonc` file controls project settings:
|
|
103
|
-
|
|
104
|
-
| Field | Type | Default | Description |
|
|
105
|
-
| ----- | ---- | ------- | ----------- |
|
|
106
|
-
| `name` | string | required | App name |
|
|
107
|
-
| `description` | string | — | App description |
|
|
108
|
-
| `visibility` | `"public"` \| `"private"` | — | App visibility. When set, `base44 deploy` syncs this to the server. `"public"` makes the app accessible without login; `"private"` restricts access. Omit to leave the current server setting unchanged. |
|
|
109
|
-
| `site.buildCommand` | string | — | Command to build the site |
|
|
110
|
-
| `site.outputDirectory` | string | — | Directory containing built site files |
|
|
111
|
-
| `site.serveCommand` | string | — | Command to serve the site locally |
|
|
112
|
-
| `site.installCommand` | string | — | Command to install site dependencies |
|
|
113
|
-
| `entitiesDir` | string | `entities` | Directory for entity schemas |
|
|
114
|
-
| `functionsDir` | string | `functions` | Directory for serverless functions |
|
|
115
|
-
| `agentsDir` | string | `agents` | Directory for AI agent configs |
|
|
116
|
-
| `connectorsDir` | string | `connectors` | Directory for connector configs |
|
|
117
|
-
|
|
118
|
-
### Example
|
|
119
|
-
|
|
120
|
-
```jsonc
|
|
121
|
-
{
|
|
122
|
-
"name": "my-app",
|
|
123
|
-
"visibility": "public",
|
|
124
|
-
"site": {
|
|
125
|
-
"buildCommand": "npm run build",
|
|
126
|
-
"outputDirectory": "dist"
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
```
|
package/dist/cli/index.js
CHANGED
|
@@ -232224,7 +232224,7 @@ async function createProject(projectName, description) {
|
|
|
232224
232224
|
name: projectName,
|
|
232225
232225
|
user_description: description ?? `Backend for '${projectName}'`,
|
|
232226
232226
|
is_managed_source_code: false,
|
|
232227
|
-
public_settings: "
|
|
232227
|
+
public_settings: "private"
|
|
232228
232228
|
}
|
|
232229
232229
|
});
|
|
232230
232230
|
} catch (error48) {
|
|
@@ -232242,9 +232242,10 @@ var VISIBILITY_TO_PUBLIC_SETTINGS = {
|
|
|
232242
232242
|
public: "public_without_login",
|
|
232243
232243
|
private: "private"
|
|
232244
232244
|
};
|
|
232245
|
-
async function updateProjectVisibility(
|
|
232245
|
+
async function updateProjectVisibility(visibility) {
|
|
232246
|
+
const appClient = getAppClient();
|
|
232246
232247
|
try {
|
|
232247
|
-
await
|
|
232248
|
+
await appClient.patch("", {
|
|
232248
232249
|
json: {
|
|
232249
232250
|
public_settings: VISIBILITY_TO_PUBLIC_SETTINGS[visibility]
|
|
232250
232251
|
}
|
|
@@ -234417,8 +234418,7 @@ async function deployAll(projectData) {
|
|
|
234417
234418
|
await agentResource.push(agents);
|
|
234418
234419
|
const { results: connectorResults } = await pushConnectors(connectors);
|
|
234419
234420
|
if (project.visibility) {
|
|
234420
|
-
|
|
234421
|
-
await updateProjectVisibility(appId, project.visibility);
|
|
234421
|
+
await updateProjectVisibility(project.visibility);
|
|
234422
234422
|
}
|
|
234423
234423
|
if (project.site?.outputDirectory) {
|
|
234424
234424
|
const outputDir = resolve(project.root, project.site.outputDirectory);
|
|
@@ -250859,4 +250859,4 @@ export {
|
|
|
250859
250859
|
CLIExitError
|
|
250860
250860
|
};
|
|
250861
250861
|
|
|
250862
|
-
//# debugId=
|
|
250862
|
+
//# debugId=6DBF3468B0B3316264756E2164756E21
|