Skip to content

Support local development with Controller#26

Merged
kronosapiens merged 3 commits into
mainfrom
feat/local-development
Jun 20, 2025
Merged

Support local development with Controller#26
kronosapiens merged 3 commits into
mainfrom
feat/local-development

Conversation

@kronosapiens
Copy link
Copy Markdown
Contributor

@kronosapiens kronosapiens commented Jun 19, 2025

This PR adds support for local development with Katana and Torii.

To develop locally, create the following file in the client/ directory:

.env.development.local

VITE_PUBLIC_DEPLOY_TYPE=localhost
VITE_PUBLIC_NODE_URL=http://localhost:5050
VITE_PUBLIC_TORII=http://localhost:8080

@kronosapiens
Copy link
Copy Markdown
Contributor Author

kronosapiens commented Jun 19, 2025

Currently getting an error when trying to start the client with localhost:

@cartridge_connector.js?v=65486e5b:464 Uncaught Error: Chain http://127.0.0.1:5050/ not supported
    at cartridgeConnector.tsx:67:28

Tracing the issue, the error seems to be coming from here . The Controller looks as though it should accept connections from local Katana instances though. Investigate further.

@broody does this look familiar to you at all? Should Controller be rejecting connections from local Katana, or is my configuration off?

@kronosapiens kronosapiens force-pushed the feat/local-development branch from a7fcacd to ae906ae Compare June 19, 2025 20:36
@broody
Copy link
Copy Markdown

broody commented Jun 19, 2025

Mmm this is on a very old version of controller, can u update to latest 0.7.13 and try again?

"@cartridge/connector": "0.5.9",
"@cartridge/controller": "0.5.9",

@kronosapiens kronosapiens force-pushed the feat/local-development branch 2 times, most recently from 9c1404c to a894b2a Compare June 20, 2025 20:29
@kronosapiens kronosapiens force-pushed the feat/local-development branch from a894b2a to 2b53a01 Compare June 20, 2025 21:03
@kronosapiens kronosapiens marked this pull request as ready for review June 20, 2025 21:19
@kronosapiens kronosapiens merged commit 759eda7 into main Jun 20, 2025
1 check passed
@kronosapiens kronosapiens deleted the feat/local-development branch June 20, 2025 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants