Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add baseurl of all links in kitchen example #92

Open
robthepaper opened this issue Jan 8, 2020 · 0 comments
Open

add baseurl of all links in kitchen example #92

robthepaper opened this issue Jan 8, 2020 · 0 comments

Comments

@robthepaper
Copy link

Hi,
When in production mode, I want to install the kitchen sink example in a folder on my server but I stumble into some problems.

I do this in my nuxt config
router: { base: '/dist/' },

When I do this I have two problems :

  • the routing when the project is built doesn't take this neww base into account so when going to http://localhost:3000/dist, it displays the 404.vue page. (I can manually add it in routes.js though)

  • if I add the prefix manually in routes.js (/lib/templates/framwork7), all my pages links doesn't take into account the prefix either.

Is there a way I can cleanly change the base url ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant