-
-
Notifications
You must be signed in to change notification settings - Fork 634
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
Generate Formula with AI #1068
Generate Formula with AI #1068
Conversation
Pull Request Test Coverage Report for Build 11737718778Details
💛 - Coveralls |
apps/nextjs-app/src/lib/withEnv.ts
Outdated
@@ -15,12 +15,27 @@ type GetServerSideProps< | |||
D extends PreviewData = PreviewData, | |||
> = (context: GetServerSidePropsContext<Q, D>) => Promise<GetServerSidePropsResult<P>>; | |||
|
|||
async function fetchPublicConfig(context?: GetServerSidePropsContext) { | |||
try { | |||
const protocol = process.env.NODE_ENV === 'development' ? 'http' : 'https'; |
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.
you can use axios from apps/nextjs-app/src/backend/api/rest/axios.ts
it design to handle internal request
apps/nextjs-app/src/lib/withEnv.ts
Outdated
@@ -31,6 +46,7 @@ export default function withEnv<P extends { [key: string]: any }>( | |||
sentryDsn: process.env.SENTRY_DSN, | |||
socialAuthProviders: process.env.SOCIAL_AUTH_PROVIDERS?.split(','), | |||
storagePrefix: process.env.STORAGE_PREFIX, | |||
globalSettings: publicConfig, |
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.
If it's just ssr, it doesn't need to be defined here.
request progress 🥹 |
soon🤓 |
Move to #1117 |
Screen.Recording.2024-11-08.at.14.48.59.mov