-
Notifications
You must be signed in to change notification settings - Fork 12
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
Usage in NextJS Apps #210
Comments
Hey thanks! I don't know very much about the NextJS build pipeline. But it sure sounds like a plugin we could build, similar (if not using) to the webpack plugin. You're right that today, the webpack plugin does only work if using the HTML plugin, something that most people do today. You might be able to use the webpack plugin with |
Looking at it, Checking to see if the module exists first using |
Oh! The import there makes sense, I didn't notice that. So a lazy load instead would likely work. |
I'm looking to create a PR to lazy load the module! It doesn't seem that I have access to push to a new branch. |
I was able to create a PR for lazy loading: |
Hey!
I've used this library really well in SPA apps and express servers, and it worked perfectly with the schema validation and environment configs.
While trying to use it in a NextJS app, I ran into the following issues:
Has anyone had success using this lib with a NextJS app, or if there are any plans for a plugin to support it?
The text was updated successfully, but these errors were encountered: