launchcodedev / app-config

Easy Configuration Loader with Strict Validation
https://app-config.dev
Mozilla Public License 2.0
69 stars 11 forks source link

NextJS Plugin #219

Open fstylermiller opened 1 year ago

fstylermiller commented 1 year ago

Hey! I've been working with the app-config-webpack plugin a good amount trying to get it to play nice with NextJS.

While I've found a few ways to get the config values from the server to the client, It would be ideal if we could get the config loaded into the bundle as a module. This way Next will send it to the client alongside the rest of the code and it can be imported as any other module would be.

Proposing a new app-config-next package spun off app-config-webpack.

Linking this issue: https://github.com/launchcodedev/app-config/issues/210

joelgallant commented 1 year ago

I haven't used NextJS a lot, but support for it seems like a win to me!