netlify-functions-express icon indicating copy to clipboard operation
netlify-functions-express copied to clipboard

How to use Netlify functions + express.js for serverside rendering on the JAMStack

Results 9 netlify-functions-express issues
Sort by recently updated
recently updated
newest added

I am getting this error right after **npm start** ``` TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined at validateString (internal/validators.js:117:11) at Object.join (path.js:375:7) at ...\netlify-functions-express\node_modules\netlify-lambda\lib\serve.js:51:23...

I would like to create an Netlify Function that helps me download Youtube Video, based on it's ID. I then merge the code by [youtubeDownloader](https://github.com/Moorad/youtubeDownloader) onto this repo ([my own...

Removed express const and package (unused)

https://express-via-functions.netlify.com/.netlify/functions/vue-ssr app crashing ``` {"errorMessage":"Cannot read property 'default' of undefined","errorType":"TypeError","stackTrace":["__webpack_require__ (/var/task/vue-ssr.js:20:30)","/var/task/vue-ssr.js:63:18","Object. (/var/task/vue-ssr.js:66:10)","Module._compile (module.js:652:30)","Object.Module._extensions..js (module.js:663:10)","Module.load (module.js:565:32)","tryModuleLoad (module.js:505:12)","Function.Module._load (module.js:497:3)","Module.require (module.js:596:17)"]} ```

It seems that there is no way to properly set the `CORS` headers using `serverless-http` for **netlify**. For the case with **AWS** it's possible to configure headers in `serverless.yaml`, but...