rn-ai 0.1.0 → 0.1.2

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.
Files changed (2) hide show
  1. package/cli.js +12 -1
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -77,11 +77,21 @@ 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"
83
93
 
84
- # ByteScale
94
+ # ByteScale secret
85
95
  BYTESCALE_API_KEY=""
86
96
 
87
97
  # OpenAI
@@ -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.0",
3
+ "version": "0.1.2",
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",