We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77c83df commit 311d323Copy full SHA for 311d323
aws-node-vue-nuxt-ssr/nuxt.js
@@ -1,13 +1,11 @@
1
const express = require('express');
2
const { Nuxt } = require('nuxt');
3
const path = require('path');
4
-
5
-const app = express();
6
7
-app.use('/_nuxt', express.static(path.join(__dirname, '.nuxt', 'dist')));
8
const config = require('./nuxt.config.js');
9
+const app = express();
10
const nuxt = new Nuxt(config);
+app.use('/_nuxt', express.static(path.join(__dirname, '.nuxt', 'dist')));
11
app.use(nuxt.render);
12
13
module.exports = app;
0 commit comments