Development
To run the AvaTax App locally:
- Follow the Saleor Apps section in the App Examples article.
- Go to the app directory.
- Copy the
.env.example
file to.env
.The.env
should contain the following variables:
Taxes is a Next.js application. If you want to learn more about setting environment variables in Next.js, head over to the documentation.
SECRET_KEY
(required)
A randomly generated key that encrypts metadata stored in Saleor. At least eight characters long.
Although it is not required in the development, we recommend to set it. If not set, a random key will be generated on each app start.
APL
(optional)
Name of the chosen implementation of the Authentication Persistence Layer.
When no value is provided, FileAPL
is used by default. See saleor-app.ts
in the app directory to see supported APLs.
APP_LOG_LEVEL
(optional)
Logging level based on which the app will decide on what messages to log.
The possible values are: trace
, debug
, info
, warn
, error
, fatal
, and silent
. The default value is silent
which means no logs will be printed.
You can read more about our logger in its documentation.
ALLOWED_DOMAIN_PATTERN
(optional)
A regex pattern that prohibits the app from being installed on a Saleor instance that does not match the pattern. If not set, all installations will be allowed.