-
Couldn't load subscription status.
- Fork 301
Feature: Added support for remote workspaces including code-server from Coder
#3201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: next
Are you sure you want to change the base?
Conversation
Add relative paths to Tailwind content scanning to support local Evidence package development using the file: protocol. Maintains full compatibility with published packages. (according to Claude)
disabling the watchers for sources and queries was not enough to prevent these from reloading
This allows me to use code-server's automatic port forwarding proxy which serves the dev website at: https://hostname/proxy/port by setting the env var to '/proxy/port' and in case of using a cloudflare tunnel, configuring the tunnel to use the same path
|
Example usage (from "scripts": {
"build": "evidence build",
"build:strict": "evidence build:strict",
"dev": "EVIDENCE_ALLOWED_HOST=evidence.orwa.tech EVIDENCE_BASE_PATH=/proxy/3710 evidence dev --debug --port 3710 --host 0.0.0.0 --disable-watchers sources --disable-hmr sources /",
// ...
},From the CLI's >> npx evidence dev --help
Description
launch the local evidence development environment
Usage
$ evidence dev [options]
Options
--disable-hmr Disables hot-reloading of certain features [sources,queries]
--disable-watchers Disables watching certain directories [sources,queries]
--debug Enables verbose console logs
-h, --help Displays this message |
Fixes dual-use preview function by directly opening Evidence web app by the startServer function instead of routing through markdown preview logic. (which usually receives local file paths not web app URLs)
various issues related to how external urls are generated were corrected, and the preview implentation simplified. a few things became more robust though much work is needed to make the extension truly robust, especially in remote environments such as code-server
code-server from Coder
|
I discovered that my frustration fixing the breadcrumbs had to do with Cloudflare's caching. Someone might argue that this use of Cloudflare tunnels exposing a dev server is both insecure, and also trying to make these tunnels do something that they are not supposed to do. This is true, and I do have to pause to think about this. I am open to a discussion about this when you the have the time in the coming weeks. But for the time being I consider this PR complete for your review. |


Summary
This PR enhances Evidence's development experience and proxy support with several improvements to CLI options, configuration, and developer workflows.
Key changes
--disable-hmrCLI option anddisableHmr()/enableHmr()SDK functions mainly for disabling the auto building of sources by the dev server when so desired by the user. Another CLI option,--disable-watcherswas also added which disables the watchers created by the CLI script itself.packages.
Checklist