Skip to content

PORT env variable bug #2

@yigit353

Description

@yigit353

If you set PORT variable in .env file to anything other than 8000 you fail because of the route.ts looks for REMOTE_ACTION_URL and if it is not found it defaults to 8000 port here:

const runtime = new CopilotRuntime({
  remoteEndpoints: [
    {
      url: process.env.REMOTE_ACTION_URL || "http://localhost:8000/copilotkit",
    },
  ],
});

It should be documented and also maybe find a more elegant solution.

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions