create-100x-mobile 0.2.2 → 0.2.3

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.
@@ -224,9 +224,13 @@ async function cmdNew(args) {
224
224
  if (envContents) {
225
225
  await (0, fs_1.writeTextFile)(envLocalPath, envContents);
226
226
  }
227
+ // ── Step 6b: Hardcode domain in auth.config.ts ─────────
228
+ // Convex auth.config.ts is evaluated at deploy time, so process.env
229
+ // won't have the value yet (we set it after deploy). Hardcode it.
230
+ if (clerkDomain) {
231
+ await (0, fs_1.writeTextFile)((0, node_path_1.join)(projectDir, "convex/auth.config.ts"), `export default {\n providers: [\n {\n domain: "${clerkDomain}",\n applicationID: "convex",\n },\n ],\n};\n`);
232
+ }
227
233
  // ── Step 7: Initialize Convex (single run) ─────────────
228
- // Only runs once. Convex env vars (set in Step 8) are read at runtime,
229
- // so no re-deploy is needed after setting them.
230
234
  prompts_1.log.step("Setting up Convex");
231
235
  try {
232
236
  await (0, run_1.run)("bunx", ["convex", "dev", "--once"], { cwd: projectDir });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-100x-mobile",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Scaffold a full-stack mobile app with Expo + Convex + Clerk in seconds",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {