Skip to content
Discussion options

You must be logged in to vote

Answered by @jmikrut.
A new problem arised, but the initial problem is resolved.

Ah, figured it out! Thanks for the steps here.

To determine where the build files are, we are currently doing the following:

path.resolve(process.cwd(), 'build')

In your case, you're running the server in production directly from the dist folder rather than from an npm script or similar from the root folder. This also causes you to need to duplicate your .env file to the dist folder when normally you shouldn't need to do that.

I think what we can do is improve the way that we are finding the build folder, rather than relying on process.cwd() like that, which will make this more bulletproof. But in the meanti…

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
10 replies
@falko100
Comment options

@jmikrut
Comment options

@falko100
Comment options

@falko100
Comment options

@falko100
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by falko100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants