rn-ai 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/cli.js +11 -0
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -77,6 +77,16 @@ async function main() {
|
|
|
77
77
|
]
|
|
78
78
|
})
|
|
79
79
|
|
|
80
|
+
let clientEnvs = `
|
|
81
|
+
EXPO_PUBLIC_ENV="DEVELOPMENT"
|
|
82
|
+
|
|
83
|
+
# Your development URL (localhost or ngrok)
|
|
84
|
+
EXPO_PUBLIC_DEV_API_URL="http://localhost:3050"
|
|
85
|
+
|
|
86
|
+
# Your production URL
|
|
87
|
+
EXPO_PUBLIC_PROD_API_URL="https://staging.example.com"
|
|
88
|
+
`
|
|
89
|
+
|
|
80
90
|
let envs = `
|
|
81
91
|
# environment, either PRODUCTION or DEVELOPMENT
|
|
82
92
|
ENVIRONMENT="PRODUCTION"
|
|
@@ -154,6 +164,7 @@ FAL_API_KEY="${fal_api_key}"
|
|
|
154
164
|
packageJson = JSON.stringify(packageObj2, null, 2)
|
|
155
165
|
fs.writeFileSync(`${appName}/app/package.json`, packageJson2)
|
|
156
166
|
fs.writeFileSync(`${appName}/server/.env`, envs)
|
|
167
|
+
fs.writeFileSync(`${appName}/app/.env`, clientEnvs)
|
|
157
168
|
|
|
158
169
|
process.chdir(path.join(process.cwd(), `${appName}/server`))
|
|
159
170
|
spinner.text = ''
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rn-ai",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Full stack mobile framework for building cross-platform mobile AI apps supporting image processing, real-time / streaming text and chat UIs, and image uploads with multiple service providers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": "cli.js",
|