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.
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.
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.
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.
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.
Ah, i thought it would copy /static/
into dist/static/
. That would save me doing package.json trickery :)
from nuxt.
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.
Related Issues (20)
- Discrepancies in production build styles order (compared to nuxt 2) HOT 4
- Parallel plugins' dependsOn does not handle environment specific plugins as expected HOT 1
- Value dissapeared HOT 4
- [Documentation] Nuxt Configuration isn't entirely correct leading to unexpected behaviour
- 502 Error deploying Nuxt 3 to Amplify (no such file or directory, open '/static/index.html') - prerender not working HOT 6
- [Bug] When using auto-import - library loses all TypeScript types HOT 3
- `useCookie` uses old value when using back, then forward button HOT 3
- Using env variables AFTER build HOT 2
- Ignore values throw [plugin:nuxt:imports-transform] [VITE_ERROR] within dependencies, when nuxtjs/i18n and @nuxtjs/sitemap are used HOT 3
- Nuxt 3 caching with ISR/SWR does not work as expected on Netlify
- `callOnce` run multiple times in client-only components HOT 8
- missing important inline styles from components used across multiple pages HOT 1
- Parentheses in path name HOT 2
- Respect named slots in server components HOT 1
- When using useFetch form is submitted for each key press HOT 1
- Server-side rendering with Nitro preset cloudflare_module and router.addRoute() not working HOT 2
- @click event handle doesn't work in IE 11
- failed to resolve "extends":"./.nuxt/tsconfig.json" HOT 3
- `useRequestEvent` return type should be `H3Event | undefined` HOT 6
- useAsyncData/useFetch types do not reflect pick changes anymore HOT 8
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.