Unable to find entrypoint after deploying in staging. #197
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi Rachit! @rachitpant Regarding the first error, you will want to ensure that 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": "/aasp" I'd advise not modifying |
Beta Was this translation helpful? Give feedback.
-
@ElMassimo I ran There are two things that seem like an issue to me during deployment :
|
Beta Was this translation helpful? Give feedback.
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 thebase
config option:I'd advise not modifying
publicOutputDir
and keep thevite
default. If you do, it should be"publicOutputDir": ""
instead of containing a slash (not a valid dir name).