Giter Site home page Giter Site logo

Comments (7)

Atinux avatar Atinux commented on April 28, 2024

Yeah we're writing the docs for it.

Actually, routeParams should be like this :

// nuxt.config.js
module.exports = {
  generate: {
    routeParams: {
      '/post/:id': [
        { id: 1 },
        { id: 2 }
        // ...
      ]
    }
  }
}

Instead of an array, you can give a function that return a Promise which will resolve an array of object with the params to generate the url.

from nuxt.js.

dan-gamble avatar dan-gamble commented on April 28, 2024

Just found this:

https://github.com/nuxt/nuxtjs.org/blob/master/nuxt.config.js#L36
https://github.com/nuxt/docs/blob/master/api/menu.json

And this helped me sort it, thanks ๐Ÿ‘

from nuxt.js.

Atinux avatar Atinux commented on April 28, 2024

Great. I'd love to see your project with nuxt generate.

We will add a link on our website to show the projects made with Nuxt.js ๐Ÿค˜๐Ÿป

from nuxt.js.

dan-gamble avatar dan-gamble commented on April 28, 2024

https://github.com/dan-gamble/dan-gamble.github.io/tree/develop (Master is for deployment like your brother :))

This is a link to the repo, hoping to get a bit of work done to it over the weekend :)

Really liking Nuxt so far, the source is very easy to read so lack of docs so far isn't a problem!

from nuxt.js.

Atinux avatar Atinux commented on April 28, 2024

Nice work!

You can add the CNAME in your static/ folder, it will be copied to the dist/ folder automatically with the nuxt generate.

from nuxt.js.

dan-gamble avatar dan-gamble commented on April 28, 2024

Ah, i thought it would copy /static/ into dist/static/. That would save me doing package.json trickery :)

from nuxt.js.

lock avatar lock commented on April 28, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from nuxt.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.