Comments (6)
personally a few reasons:
- check output of prod build to see if it looks how I'd expect / debug something that only shows up in prod.
- making sure my understanding around how process.env.NODE_ENV works across development/production environments with vite. (e.g. its the only variable that I know of that is exposed across client/server)
- making sure useEffect works as expected (runs once in prod vs twice in dev because of StrictMode)
- making sure some CSP policy is applied correctly for prod.
- making sure other analytics scripts are being applied properly.
from remix.
Why would you need to run a start script as opposed to running the
remix vite:dev
dev server?
In order to test out the build locally because of some issues I'm only getting in production
from remix.
Why would you need to run a start script as opposed to running the remix vite:dev
dev server?
from remix.
Fair enough. So you would need to adjust the file path in your "start" script to match the path which gets created with the plugin. Or you could disable the plugin for your local debugging / verification session.
I'll close this though since "changes build directory structure" is by design, and a result of the plugin's serverBundles
option usage.
from remix.
Fair enough. So you would need to adjust the file path in your "start" script to match the path which gets created with the plugin. Or you could disable the plugin for your local debugging / verification session.
I'll close this though since "changes build directory structure" is by design, and a result of the plugin's
serverBundles
option usage.
Okay, thanks for helping me understand what's going on under the hood. I noticed the nodejs-ID folder is consistent. My repo is private right now and I was concerned I might be exposing some kind of secret by having the directory name in my scripts when it goes public.
from remix.
Ya, the ID is generated based on the export const config
object's configuration (if any) in your routes, so it will be consistent with common route configurations.
from remix.
Related Issues (20)
- vercel feature flags HOT 7
- how can I gracefully handle FUNCTION_INVOCATION_TIMEOUT HOT 2
- `vercel build` fails in template HOT 2
- Cannot deploy if any route uses the edge runtime HOT 9
- Custom entry.server with Vite not possible HOT 3
- Root route imports are always bundled for edge HOT 1
- Merge Conflict ❌
- 2.9.1? HOT 3
- `TypeError: headers.getSetCookie is not a function` HOT 7
- Merge Conflict ❌
- Deployment to Vercel causes a build panic when using manual route configuration #9431 HOT 1
- need `getLoadContext` HOT 8
- Merge Conflict ❌
- Cannot deploy remix-utils to edge HOT 5
- Merge Conflict ❌
- maxDuration does not work for remix + vite HOT 13
- [Remix + Vite] Trying to build production app failing (mixed client and server code) HOT 9
- Links have stopped working after deploy HOT 8
- using config export breaks HMR HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remix.