Skip to content
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

How to go in production mode ? #3

Open
ksami007 opened this issue Jul 17, 2023 · 1 comment
Open

How to go in production mode ? #3

ksami007 opened this issue Jul 17, 2023 · 1 comment

Comments

@ksami007
Copy link

Hello @cydrickn
This is a good stack, it's working perfectly on development environment. What about production mode ?

On Symfony side :
APP_ENV=prod

  • composer install --no-dev

On Vite (node container) side :
NODE_ENV=production

  • npm run build
  • npm run build:ssr

Do we need to adapt server.js to serve SSR built files ?

Best regards
Thank you

@cydrickn
Copy link
Owner

Hi @ksami007,

Yes you need to run the server.js to serve the ssr for production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants