Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

NoTimeForCaution's avatar

AWS not loading app.js

Hey all,

Just signed up for Forge to simplify deployment to AWS. Using a basic Laravel/Tailwind/Vue app as a scaffold.

Everything looks and works during deployment with exception of public/app.js which causes all Vue components to fail.

Anyone have a recommendation or solution to this issue? Not sure how webpack is compiling my Laravel css but fails to load my js.

0 likes
5 replies
NoTimeForCaution's avatar

I think it has something to do with HTTPS as I can duplicate this behavior locally by removing the

\URL::forceScheme('https');

from App Service Provider.....

Cronix's avatar

Does your js file exist in /public? How are you loading it?

Cronix's avatar

And how are you loading it in your html?

NoTimeForCaution's avatar
Level 24

Not a compile or firewall issue. I was trying to serve the file using Laravel's url helper.

#FAILS
<script src="{{ url('js/app.js') }}"></script>

Thanks for making me take another look , @cronix -- always appreciate your help.

Please or to participate in this conversation.