Skip to content

add baseurl of all links in kitchen example #92

@robthepaper

Description

@robthepaper

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions