Skip to content

added sync style method in next.config.js #24

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

b-estevez
Copy link

No description provided.

pages/_app.tsx Outdated
const { serverRuntimeConfig } = getConfig();

let style = {};
(async () => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is being added because serverRuntimeConfig does not allow async functions then the original use case of the next/config losses its value.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We changed the serverRuntimeConfig to PublicRuntimeConfig since we cannot apply the styles from the browser since its only available in the server side

@b-estevez
Copy link
Author

Need to add the package webengine-json as dependency in order to run the style function and pass the test

@b-estevez
Copy link
Author

Hi @shrunyan , just want to bump for a follow up in this pr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants