Skip to content

Usage in NextJS Apps #210

@mikelfcosta

Description

@mikelfcosta

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:

  • I could not use the NodeJS apis. Although I can import, run and read the configs successfully, it does not run on the Edge runtime that has no access to NodeJS native APIs (throws errors since some of those libs are not found).
  • I could not use the Webpack Plugin since it fails as there is no HtmlWebpack Plugin

Has anyone had success using this lib with a NextJS app, or if there are any plans for a plugin to support it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions