Tried to deploy my nuxt app to aws lambda. Read this articles:
https://medium.com/@fernalvarez/serverless-side-rendering-with-aws-lambda-nuxtjs-b94d15782af5
https://dzone.com/articles/a-crash-course-on-serverless-side-rendering-with-v
All works but have some js errors in console. Tried multiple variants for "router.base" and "build.publicPath" config with no luck.
Here is my env:
nuxt.config.js: https://pastecode.xyz/view/69ad1f00
package.json: https://pastecode.xyz/view/2401a6d2
server.js: https://pastecode.xyz/view/48012477
handler.js: https://pastecode.xyz/view/b59848a5
serverless.yml: https://pastecode.xyz/view/5916f406
So, when I visit deployed app, all is nice except errors in js console:
As I checked in html code, the path for this js is generated as:
https://*******.execute-api.eu-central-1.amazonaws.com/dev/_nuxt/7881ea044902e4092627.js
which is 404, BUT! this one is present:
https://*******.execute-api.eu-central-1.amazonaws.com/dev/dev/_nuxt/7881ea044902e4092627.js
You can see additional /dev/ which I added manually. So, what should I do to make it loaded? What am I missing in config (and in which one)?

devin there is the one defined in your config file. Firstdevis the stage name for the API. That seems to be the only explanation for your described behavior.build: { publicPath: '/dev/_nuxt/', //more code }publicPathas/_nuxt/? Or maybe you can append the URL pathserverlessreturns with youpublicPath.