Deploying Remix w/Vite (dev v. prod)
I'm trying to figure out when I'll know if my project will deploy to Pages w/o error in production.
Here's the situation:
I'm working on a Remix 2.15.2 project that is slated to be deployed to Pages. I'm looking at upgrading it to Vite from what Remix calls the "classic compiler."
If I do this, the Remix Discord tells me that my project won't be running Wrangler when in dev due to its use of Vite (env API-related, I think).
This means the project can break when deploying to prod should I inadvertently use a node library.
My questions:
1. Will preview deployments use Wrangler, thus telling me if something is wrong with a prod deploy?
2. Will the main branch — accessible by default at *.pages.dev — use Wrangler, thus telling me if something is wrong with a prod deploy?
Does this make sense?
Really appreciate any clarity you can provide.
Here's the situation:
I'm working on a Remix 2.15.2 project that is slated to be deployed to Pages. I'm looking at upgrading it to Vite from what Remix calls the "classic compiler."
If I do this, the Remix Discord tells me that my project won't be running Wrangler when in dev due to its use of Vite (env API-related, I think).
This means the project can break when deploying to prod should I inadvertently use a node library.
My questions:
1. Will preview deployments use Wrangler, thus telling me if something is wrong with a prod deploy?
2. Will the main branch — accessible by default at *.pages.dev — use Wrangler, thus telling me if something is wrong with a prod deploy?
Does this make sense?
Really appreciate any clarity you can provide.
