GithubHelp home page GithubHelp logo

Comments (6)

lifeiscontent avatar lifeiscontent commented on July 22, 2024 1

personally a few reasons:

  1. check output of prod build to see if it looks how I'd expect / debug something that only shows up in prod.
  2. 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)
  3. making sure useEffect works as expected (runs once in prod vs twice in dev because of StrictMode)
  4. making sure some CSP policy is applied correctly for prod.
  5. making sure other analytics scripts are being applied properly.

from remix.

justin-hackin avatar justin-hackin commented on July 22, 2024 1

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.

TooTallNate avatar TooTallNate commented on July 22, 2024

Why would you need to run a start script as opposed to running the remix vite:dev dev server?

from remix.

TooTallNate avatar TooTallNate commented on July 22, 2024

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.

justin-hackin avatar justin-hackin commented on July 22, 2024

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.

TooTallNate avatar TooTallNate commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.