create-svc 0.1.43 → 0.1.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-svc",
3
- "version": "0.1.43",
3
+ "version": "0.1.44",
4
4
  "description": "Local microservice bootstrap CLI for Cloud Run and Workers services with Neon-backed data.",
5
5
  "module": "index.ts",
6
6
  "type": "module",
@@ -316,7 +316,7 @@ test("scaffolds the workers target with wrangler lifecycle commands", async () =
316
316
  const wranglerConfig = await Bun.file(join(generatedRoot, "wrangler.toml")).text();
317
317
  expect(wranglerConfig).toContain('name = "dns-api"');
318
318
  expect(wranglerConfig).toContain('compatibility_flags = ["nodejs_compat"]');
319
- expect(wranglerConfig).toContain('pattern = "api.dns-api.anmho.com/*"');
319
+ expect(wranglerConfig).toContain('pattern = "api.dns-api.anmho.com"');
320
320
  expect(wranglerConfig).toContain('binding = "HYPERDRIVE"');
321
321
  expect(wranglerConfig).toContain('AUTH_ENABLED = "true"');
322
322
  expect(wranglerConfig).toContain('AUTH_AUDIENCE = "api://dns-api"');
@@ -452,7 +452,7 @@ async function runDoctor() {
452
452
  if (!text.includes(`name = "${config.serviceName}"`)) {
453
453
  throw new Error(`wrangler.toml does not name ${config.serviceName}`);
454
454
  }
455
- if (!text.includes(`pattern = "${config.hostname}/*"`)) {
455
+ if (!text.includes(`pattern = "${config.hostname}"`)) {
456
456
  throw new Error(`wrangler.toml does not route ${config.hostname}`);
457
457
  }
458
458
  return "name and custom domain route configured";
@@ -16,7 +16,7 @@ AUTH_JWKS_URL = "{{AUTH_JWKS_URL}}"
16
16
  crons = ["*/15 * * * *"]
17
17
 
18
18
  [[routes]]
19
- pattern = "{{API_HOSTNAME}}/*"
19
+ pattern = "{{API_HOSTNAME}}"
20
20
  custom_domain = true
21
21
 
22
22
  [[hyperdrive]]