You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Learn more at https://nuxtjs.org/guide/installation
58
+
59
+
## Examples
60
+
61
+
Please take a look at <https://nuxtjs.org/examples> or directly in <https://github.com/nuxt/nuxt.js/tree/dev/examples>.
62
+
63
+
## Production deployment
64
+
65
+
To deploy, instead of running nuxt, you probably want to build ahead of time. Therefore, building and starting are separate commands:
66
+
67
+
```bash
68
+
nuxt build
69
+
nuxt start
70
+
```
71
+
72
+
Learn more at https://nuxtjs.org/guide/commands#production-deployment
73
+
49
74
## Consulting from the Nuxt team
50
75
51
76
Get help with that tough bug or make sure your Nuxt app is ready to deploy. For $250 an hour, get technical support, advice, code reviews, and development from the Nuxt core team: [Hire Nuxt on Otechie](https://otechie.com/nuxt?ref=readme)
@@ -85,111 +110,6 @@ Support us with a monthly donation and help us continue our activities. [[Become
-[nuxtent](https://github.com/nuxt-community/nuxtent-template): Nuxt.js + Nuxtent module for content heavy sites
107
-
108
-
## Using nuxt.js programmatically
109
-
110
-
```js
111
-
const { Nuxt, Builder } =require('nuxt')
112
-
113
-
// Import and set nuxt.js options
114
-
constconfig=require('./nuxt.config.js')
115
-
config.dev= (process.env.NODE_ENV!=='production')
116
-
117
-
constnuxt=newNuxt(config)
118
-
119
-
// Start build process (only in development)
120
-
if (config.dev) {
121
-
newBuilder(nuxt).build()
122
-
}
123
-
124
-
// You can use nuxt.render(req, res) or nuxt.renderRoute(route, context)
125
-
```
126
-
127
-
Learn more: <https://nuxtjs.org/api/nuxt>
128
-
129
-
## Using nuxt.js as a middleware
130
-
131
-
You might want to use your own server with your configurations, your API and everything awesome you have created with. That's why you can use nuxt.js as a middleware. It's recommended to use it at the end of your middleware since it will handle the rendering of your web application and won't call next().
132
-
133
-
```js
134
-
app.use(nuxt.render)
135
-
```
136
-
137
-
Learn more: <https://nuxtjs.org/api/nuxt-render>
138
-
139
-
## Render a specific route
140
-
141
-
This is mostly used for `nuxt generate` and test purposes but you might find another utility!
142
-
143
-
```js
144
-
nuxt.renderRoute('/about', context)
145
-
.then(function ({ html, error }) {
146
-
// You can check error to know if your app displayed the error page for this route
147
-
// Useful to set the correct status code if an error appended:
0 commit comments