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
constexpress=require('express');constNuxt=require('nuxt');constnuxtConfig=require('../app/nuxt.config');constapp=express();console.log(nuxtConfig.srcDir);app.get('/api',(req,res)=>{res.json('Ok');});constnuxt=newNuxt(nuxtConfig);nuxt.build();app.use(nuxt.render);app.listen(3000,()=>{console.log('now listening port 3000');});
Folder structure:
This bug report is available on Nuxt.js community (#c41)
The text was updated successfully, but these errors were encountered:
I'm trying to use the srcDir with express. When I access the page, this red message appears:
my nuxt.config.js
server/index.js
Folder structure:
The text was updated successfully, but these errors were encountered: