nishiki-tech / nishiki-frontend

Nishiki is an app for tracking and sharing food inventories within groups for better pantry management.
https://nishiki.tech
MIT License
16 stars 5 forks source link

Fix: Fix signin problem on Vercel Preview environment #339

Closed nick-y-ito closed 4 months ago

nick-y-ito commented 4 months ago

Overview

This PR fixes issue #338, which causes sign-in failure.

Changes

Review points

image

Screen Captures

References

Environment Variable Load Order

Environment variables are looked up in the following places, in order, stopping once the variable is found.

  1. process.env
  2. .env.$(NODE_ENV).local
  3. .env.local (Not checked when NODE_ENV is test.)
  4. .env.$(NODE_ENV)
  5. .env

For example, if NODE_ENV is development and you define a variable in both .env.development.local and .env, the value in .env.development.local will be used.

Notes

Assignee Checklist:

Reviewer Checklist:

nick-y-ito commented 4 months ago

@kanta1207 @ShoeheyOt @kotaaaa Could you please review this PR when you have a moment?

nick-y-ito commented 4 months ago

@kotaaaa Thank you for your review!