This repository was archived by the owner on Jun 9, 2025. It is now read-only.
Code inside function can break the Netlify site #406
Labels
type: bug
code to address defects in shipped code
Describe the bug
I was in the middle of implementing Netlify Identity using Functions and after pushing the code below, I was a bit concerned to see it broke the
https://app.netlify.com/sites/<site>/identity
page:Function:
The root cause is this line:
After changing
roles
to an array, then the Identity page was fine again.IMHO no code inside a function should be able to break the page like this.
Configuration
System:
OS: Windows 10 10.0.19044
CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Memory: 12.18 GB / 31.95 GB
Binaries:
Node: 16.20.0 - C:\Program Files\nodejs\node.EXE
npm: 8.19.4 - C:\Program Files\nodejs\npm.CMD
The text was updated successfully, but these errors were encountered: