-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
Do we have server built file? #1029
Comments
@wellyshen, Duo to this issue, I wanna change SSR render by new configuration, I will use If it is acceptable by you, I will send PR, for now, inside my project I'm using this. |
@amerllica We don't have yet. Sorry man, I'm busying for other libraries will back to this starter soon. I plan to build the SSR file when migrating to Webpack v5. Would you mind sharing your solution with me first? |
@wellyshen, I know you're busy, me too, for now I'm very busy with a Silicon Valley project. but still I'm so eager to this starter, I mentioned my idea in the first post of this issue, here. Whenever you have time pull it and you can see in the production level we will have a commonjs2 file not reading from source. |
Something is not clear for me yet, Do we have server built file or not?
When I run the
yarn build
command it is obvious we will have all the client assets in thepublic
folder and will serve them to the client, but what about server?By my understanding by using
yarn start
command:we will run this file:
it means for the last line
require('./src/server');
we are using source code ofserver/index.ts
and in this file in line 11 we have:it means it is source code not built version, even for production. I think there is another solution for production. we should build all the application and store it in just one huge file just for server. and tell the
express
go and read theserver.js
file that is built just for production level.I have very simple configuration, you can check it. it uses exactly this way that I describe above. but my configuration doesn't have features like yours. really I like yours but is it possible to implement server built file?
The first and more important feature for a
server.js
build file is using powerful node process manager likepm2
.The text was updated successfully, but these errors were encountered: