Config
This commit is contained in:
parent
06f1fa086e
commit
88e4f61221
4 changed files with 10 additions and 8 deletions
3
web/.gitignore
vendored
3
web/.gitignore
vendored
|
@ -9,8 +9,7 @@ node_modules/
|
|||
|
||||
# Local env files
|
||||
.env
|
||||
.env.local
|
||||
.env.*.local
|
||||
.env*.local
|
||||
|
||||
# Next.js
|
||||
.next/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Code that runs on `payments.ente.io`, handling and web facing interaction with
|
||||
Code that runs on `payments.ente.io`. It brokers between our services and
|
||||
Stripe's API for payments.
|
||||
|
||||
## Development
|
||||
|
@ -32,7 +32,8 @@ NEXT_PUBLIC_STRIPE_US_PUBLISHABLE_KEY = stripe_publishable_key
|
|||
|
||||
2. Define this secret within your `musuem.yaml`
|
||||
|
||||
3. Update the `whitelisted-redirect-urls` so that it supports redirecting to this locally running project
|
||||
3. Update the `whitelisted-redirect-urls` so that it supports redirecting to
|
||||
this locally running project.
|
||||
|
||||
Assuming that your local payments app is running on `192.168.1.2:3001`, your
|
||||
`museum.yaml` should look as follows.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Sample configuration file
|
||||
#
|
||||
# All variables are commented out by default. Copy paste this into a new file
|
||||
# called `.env.local` (or create a new file with that name) and add the
|
||||
# called `.env.local` (or create a new empty file with that name) and add the
|
||||
# environment variables you want to apply during development. `.env.local` is
|
||||
# gitignored, so you can freely customize it for your local setup.
|
||||
#
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
# Develop against a server running on localhost
|
||||
#
|
||||
# Copy this file to `.env`. Then if you run a local instance of the web client
|
||||
# with `yarn dev:photos`, it will connect to a locally running instance of the
|
||||
# server. Not everything will work, you might need to set other env vars (see
|
||||
# Copy this file to `.env.local`. Then if you run a local instance of the web
|
||||
# client with `yarn dev:photos`, it will connect to a locally running instance
|
||||
# of the server.
|
||||
#
|
||||
# Not everything will work, you might need to set other env vars (see
|
||||
# `.env.development`), but it should give you a usable baseline setup.
|
||||
#
|
||||
# Equivalent CLI command using environment variables would be
|
||||
|
|
Loading…
Add table
Reference in a new issue