I want to host a Shopware PWA app at Plesk. For this I have the following index.js and server.js files.
However, I only get the standard page from Nuxt.JS and not the shop.
index.js
require("@babel/register")({});
module.exports = require('./server.js');
server.js
const express = require('express');
const { Nuxt, Builder } = require('nuxt');
const config = require('./nuxt.config.js');
// Create new express app
const app = express();
// Listen to port 3000 or PORT env if provided
app.listen(process.env.PORT || 3000);
// Enable production mode
config.dev = false;
// Create instance of nuxt
const nuxt = new Nuxt(config);
// Add nuxt middleware
app.use(nuxt.render);
new Builder(nuxt).build();
My Plesk config:
