By thinkshifts
I was able to deploy the vue frontend and a lavarel backend on the app platform using this tutorial https://youtu.be/qkg5Cufa-C8. So, I tried adding another frontend so it can use the same backend then pointed it to route “/admin” but I was getting a blank page. What I want to achieve is that when I do www.domainname/admin, I should be able to access the new vue frontend I added…
I look forward for help as soon. Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @thinkshifts,
As a first troubleshooting step please browse to /admin and look for any errors in your browser’s developer tools console. It’s possible that Vue.js isn’t aware of /admin at build-time and not including it in the URLs for JS and CSS assets.
If this is the case, you might need to set the publicPath option:
module.exports = {
publicPath: process.env.NODE_ENV === 'production'
? '/admin/'
: '/'
}
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.