Skip to content

--profile flag and ALCHEMY_PROFILE environment variable don't update deployed URL display (worker.url) #1285

@Dawsson

Description

@Dawsson

When deploying with --profile flag or ALCHEMY_PROFILE environment variable, the deployment succeeds to the correct account but the CLI displays the URL using the default profile instead of the specified profile.
Steps to reproduce:

Configure multiple profiles using alchemy configure
Deploy with --profile amplify
CLI shows URL with default profile when printing worker.url
Try again with both ALCHEMY_PROFILE=amplify and --profile amplify
Deployment succeeds to correct account, but CLI still shows URL with default profile

Expected: URL should reflect the profile used for deployment
Actual: URL always shows default profile regardless of --profile flag or env variable (tested both separately and combined)

import alchemy from "alchemy";
import { Worker } from "alchemy/cloudflare";

const app = await alchemy("junked-universal-links");

const worker = await Worker("junked-universal-links", {
  name: "junked-universal-links",
  entrypoint: "./src/index.ts",
});

console.log(`Worker deployed at: ${worker.url}`);
await app.finalize();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions