Report this

What is the reason for this report?

How to add two frontend with a single backend on app platform

Posted on May 27, 2021

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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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:

vue.config.js
module.exports = {
  publicPath: process.env.NODE_ENV === 'production'
    ? '/admin/'
    : '/'
}

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.