diff --git a/next.config.js b/next.config.js index 9b0aae5..bce69e7 100644 --- a/next.config.js +++ b/next.config.js @@ -1,10 +1,6 @@ -const { parsed: localEnv } = require("dotenv").config(); -const webpack = require("webpack"); - +require("dotenv").config(); module.exports = { - webpack(config) { - config.plugins.push(new webpack.EnvironmentPlugin(localEnv)); - - return config; + env: { + NEXT_SEARCH_GITHUB_API_KEY: process.env.NEXT_SEARCH_GITHUB_API_KEY } };