Skip to content

Unable to find entrypoint after deploying in staging. #197

Answered by ElMassimo
rachitpant asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Rachit! @rachitpant

Regarding the first error, you will want to ensure that ViteRuby.config.manifest_path exists, which you can check manually by starting a console in the server.

From the error, it seems that the assets dir is outside the root of the Rails app, which is very unusual.


You should not configure base manually in Vite, instead use the base config option:

"base": "/aasp"

I'd advise not modifying publicOutputDir and keep the vite default. If you do, it should be "publicOutputDir": "" instead of containing a slash (not a valid dir name).

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@ElMassimo
Comment options

@rachitpant
Comment options

@ElMassimo
Comment options

@rachitpant
Comment options

@rachitpant
Comment options

Answer selected by ElMassimo
Comment options

You must be logged in to vote
0 replies
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