{ Error: Cannot find module '/srv/next/server/static/t~h9~HiTNHFDHMSqvJtLw/pages/_document'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.loadComponents (/srv/node_modules/next-server/dist/server/load-components.js:16:24)
at Server.renderToHTMLWithComponents (/srv/node_modules/next-server/dist/server/next-server.js:224:48)
at Server.renderErrorToHTML (/srv/node_modules/next-server/dist/server/next-server.js:260:21)
at Server.renderToHTML (/srv/node_modules/next-server/dist/server/next-server.js:242:29)
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:229:7) code: 'MODULE_NOT_FOUND' }
Describe the bug
I just started my first project with Next and wanted to host on firebase. I started using the with-firebase-hosting and mixed it in with the material-ui example. Zero problems with production builds and deploying. I wanted to use the new serverless build option with the Firebase Hosting example so I upgraded to the latest version of Next(8.0.3). Still no issues with my production build. When I add the "target: serverless" option in my next config I get this error message in my production build whenever I try to load a live page.
Was expecting the serverless option to deploy my functions on firebase and increase the efficiency of cold starts. I also did not know whether the serverless option works with firebase in general. When I remove the serverless option in my next config, my production build works flawlessly, it jut has long cold starts(30-45s).
System information
OS: macOS
Version of Next.js: [8.0.3]
This is my first time submitting an issue, please let me know if I left out anything useful :)
Bug report
Describe the bug
I just started my first project with Next and wanted to host on firebase. I started using the with-firebase-hosting and mixed it in with the material-ui example. Zero problems with production builds and deploying. I wanted to use the new serverless build option with the Firebase Hosting example so I upgraded to the latest version of Next(8.0.3). Still no issues with my production build. When I add the "target: serverless" option in my next config I get this error message in my production build whenever I try to load a live page.
Next Config
babelrc
_document
_app
package.json
Expected behavior
Was expecting the serverless option to deploy my functions on firebase and increase the efficiency of cold starts. I also did not know whether the serverless option works with firebase in general. When I remove the serverless option in my next config, my production build works flawlessly, it jut has long cold starts(30-45s).
System information
This is my first time submitting an issue, please let me know if I left out anything useful :)