Comments (7)
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.
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.
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.
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.
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.
Ah, i thought it would copy /static/
into dist/static/
. That would save me doing package.json trickery :)
from nuxt.js.
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)
- https://nuxt.com isn't working on firefox HOT 2
- "No match found for location with path" is still spammed on unknown paths HOT 1
- Uncaught SyntaxError when building Nuxt.js 3.11.2 with Webpack HOT 1
- Docs: Nuxt Layers video update with latest one
- Docs: Nuxt Layers video update with latest one
- node .output/server/index.mjs error HOT 2
- Cannot find module from node_modules
- Move `@nuxt/ui-templates` into nuxt/nuxt monorepo
- Refreshed NuxtWelcome design (+ other error pages?)
- Resolve `runtimeConfig` within nuxt options
- public subfolder name collision with route causes 301 redirect HOT 1
- Unable to access logger in client or server from plugin HOT 1
- Error with `dist` symlink with SST Ion
- Navigating from router-view throws Missing required param
- Failed CSS preloads shouldn't throw errors
- Big bundle size due to jsdom canvas HOT 1
- ้กต้ขๅทๆฐ ้กต้ขๆๅจ
- ERROR (node:52837) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated HOT 1
- nuxt aos set options { once: true }, only show the animation on the first visit but not work when navigating to a page
- static generating is removing invalid html, but not reporting when linting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuxt.js.