Skip to content

Instantly share code, notes, and snippets.

@jacobedawson
Last active July 7, 2019 15:37

Revisions

  1. jacobedawson revised this gist Jul 7, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion next.config.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // Create the next.config.js file in your root dir
    module.exports = {
    env: {
    API_URL:
    API:
    process.env.NODE_ENV === "production"
    ? process.env.API_URL
    : "http://localhost:8080/api"
  2. jacobedawson revised this gist Jul 7, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions next.config.js
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    // Create the next.config.js file in your root dir
    module.exports = {
    env: {
    API_URL:
  3. jacobedawson created this gist Jul 7, 2019.
    8 changes: 8 additions & 0 deletions next.config.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    module.exports = {
    env: {
    API_URL:
    process.env.NODE_ENV === "production"
    ? process.env.API_URL
    : "http://localhost:8080/api"
    }
    };