Replies: 1 comment 3 replies
-
The problem with doing this is that the relative import of trying to import something in a parent directory changes which is surprising and would break, but only in production mode. The build needs to be the same distance from the parent directory as the source. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@kentcdodds
currently
server-build/index.js
is out of the build folder.I think it is better to move it to
build/server/index.js
we can use code similar to this.
Beta Was this translation helpful? Give feedback.
All reactions