-
Notifications
You must be signed in to change notification settings - Fork 13
Add Content Security Policy #879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f09330e
to
a9b8945
Compare
8447473
to
7544e91
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks gorgeous to me !
FIREBASE_APP_ID: z.string().optional(), | ||
METABASE_URL: z.string().optional(), | ||
|
||
// FIREBASE_AUTH_EMULATOR_HOST: z.string().optional(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we keep this commented line ?
const [err, appConfig] = await tryit(() => appConfigRepository.getAppConfig())(); | ||
|
||
if (ssoResponse.status === 'rejected') { | ||
console.error('Error fetching internal SSO-enabled API'); | ||
} | ||
if (signInStatusResponse.status === 'rejected') { | ||
console.error('Error fetching internal signup-status API'); | ||
if (err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Silly question: Should we consider tryit a standard?
I’d naturally lean toward using a regular try/catch block in this case, but I’m okay with adopting this method more if that’s the direction we’re going.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error values > Exceptions 🥷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let the religion wars begin 🙊
joke aside, I rather like go's error values, but I wonder too if it's idiomatic in js 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't really opinionated before needing to no repeat code uselessly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really cool 👍
const [err, appConfig] = await tryit(() => appConfigRepository.getAppConfig())(); | ||
|
||
if (ssoResponse.status === 'rejected') { | ||
console.error('Error fetching internal SSO-enabled API'); | ||
} | ||
if (signInStatusResponse.status === 'rejected') { | ||
console.error('Error fetching internal signup-status API'); | ||
if (err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let the religion wars begin 🙊
joke aside, I rather like go's error values, but I wonder too if it's idiomatic in js 🤔
2acc69e
to
e34b609
Compare
No description provided.