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

[FEATURE-39] Add scripts to serve production build locally #39

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

davorpa
Copy link
Member

@davorpa davorpa commented Sep 19, 2022

What does this PR do?

Add feature(s)

Description

This PR allows running the production-optimized build locally.

I know that we have npm start but is not the same. This script runs the app in developvement mode, not in production.

Adds the npm run serve script for such case, making use of the cross-env library to set PUBLIC_URL before building the project.

Useful to view/test the app locally before deploying to production npm run deploy.

Context

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

Successfully merging this pull request may close these issues.

1 participant