mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
Wildcard domains (#830)
This commit is contained in:
@@ -8,7 +8,6 @@ The following conventions MUST be followed in new code.
|
||||
DON'T report code patterns outside of the examples explicitly listed below:
|
||||
|
||||
- Never use `void asyncFunction()` or `asyncFunction().catch(console.error)` - use `runAsynchronously(asyncFunction)` instead
|
||||
- Use `parseJson`/`stringifyJson` from `stack-shared/utils/json` instead of `JSON.parse`/`JSON.stringify`
|
||||
- Instead of Vercel `waitUntil`, use `runAsynchronously(promise, { promiseCallback: waitUntil })`
|
||||
- Don't concatenate URLs as strings - avoid patterns like `/users/${userId}`
|
||||
- Replace non-null assertions with `?? throwErr("message", { extraData })` pattern
|
||||
|
||||
Reference in New Issue
Block a user