-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
v1.19.0 removes build.dev
, breaking logDevReady()
in Cloudflare
#6891
Comments
Workaround is to use |
@Ponjimon you can force types for // server.ts
declare var process : {
env: {
NODE_ENV: string
}
}
// ...rest of your server code goes here... That way you don't need to rely on |
Thanks, but shouldn't something like this be part of the template? It feels odd having a template that throws errors, even if it's not a runtime error |
@Ponjimon Yeah, I’ll PR it. My bad for not testing properly 😔 |
No, my bad, Pedro is right—this change didn’t introduce
|
I'm planning to add |
What version of Remix are you using?
v1.19.0
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
(Firstly @pcattori I f**ing love the new dev server and feel like this is as great a place as any to show my appreciation. It’s hard work to keep this compatible with all the different runtimes and other frameworks have just given up on trying—I love that you haven’t!)
This one is fairly simple, I think it’s just an oversight. The Cloudflare template includes:
remix/templates/cloudflare-workers/server.ts
Lines 10 to 12 in 14bdd98
But as of v1.19.0,
build.dev
no longer exists (blame). As such, my live reloads never trigger and I have a type error when I compile.In the meantime, I’m gating on
process.env.NODE_ENV
, which I’ve been injecting into my Workers environment anyway.Expected Behavior
The CLI should print the build hash to the console, triggering a live reload.
Actual Behavior
The CLI does not print the build hash to the console and live reloads don’t happen.
The text was updated successfully, but these errors were encountered: