Skip to content

Commit

Permalink
[#117] Add vapid env into nextjs config file
Browse files Browse the repository at this point in the history
  • Loading branch information
wayangalihpratama committed Oct 28, 2024
1 parent e6a8fb7 commit 1200cc6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ const nextConfig = {
},
],
},
env: {
NEXT_PUBLIC_VAPID_PUBLIC_KEY: process.env.NEXT_PUBLIC_VAPID_PUBLIC_KEY,
NEXT_PUBLIC_VAPID_PRIVATE_KEY: process.env.NEXT_PUBLIC_VAPID_PRIVATE_KEY,
},
};

export default nextConfig;
4 changes: 4 additions & 0 deletions frontend/next.config.prod.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ const nextConfig = {
},
],
},
env: {
NEXT_PUBLIC_VAPID_PUBLIC_KEY: process.env.NEXT_PUBLIC_VAPID_PUBLIC_KEY,
NEXT_PUBLIC_VAPID_PRIVATE_KEY: process.env.NEXT_PUBLIC_VAPID_PRIVATE_KEY,
},
};

export default nextConfig;

0 comments on commit 1200cc6

Please sign in to comment.