我想用NextJS与火力点云功能,我创建一个云功能:NextJS与火力地堡云功能
import * as functions from 'firebase-functions';
import cors from 'cors';
import express from 'express';
import next from 'next';
const nextApp = next({ dev: false });
const handle = nextApp.getRequestHandler();
nextApp
.prepare()
.then(() => {
const server = express();
server.use(cors({ origin: true }));
server.get('/a', (req, res) => {
return nextApp.render(req, res, '/b', req.query);
});
server.get('/b', (req, res) => {
return nextApp.render(req, res, '/a', req.query);
});
server.get('*', (req, res) => {
return handle(req, res);
});
})
.catch(ex => {
console.error(ex.stack);
process.exit(1);
});
export let app = functions.https.onRequest(nextApp);
NextJS创建一个文件夹,我的JS应用程序的构建。
问题是我无法在云端上传NextJS构建文件夹。 如何包含此文件夹?
GitHub的问题=>https://github.com/zeit/next.js/issues/2017