-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.env.dist
104 lines (100 loc) · 4.87 KB
/
.env.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
########## .env.dist ########################################################
#
# This file is an example of how to configure Magento PWA Studio at
# development time and runtime. Use these environment variables for any
# settings which will change between your production, development, and
# testing environments.
#
# Copy this file to a file in the `venia-concept` directory called `.env`
# to activate your project. If a `.env` file is missing, or required
# variables are missing in your `.env` file, you should be notified.
#
###############################################################################
########## Connecting to a Magento store ######################################
#
# Connect to an instance of Magento 2.3 by specifying its public
# domain name. **REQUIRED.** Example:
MAGENTO_BACKEND_URL="https://release-utkfd3a-dpfibs5yviagi.us-3.magentosite.cloud/"
#
# Use a particular website code when making API calls. Defaults to 'base',
# but for your PWA to act as a different "website" in the Magento admin,
# you can change this variable. Example:
# MAGENTO_WEBSITE_CODE="foo"
#
# TODO: This env var can override the hardcoded product media path, which we
# need to hardcode due to https://github.com/magento/graphql-ce/issues/88
# REQUIRED, and automatically set here:
MAGENTO_BACKEND_PRODUCT_MEDIA_PATH="/media/catalog/product"
# DO NOT CHANGE THIS VALUE unless you have a custom static setup.
#
# These legacy environment variables from 1.x are no longer necessary:
# - `MAGENTO_BACKEND_PUBLIC_PATH`: Since PWA Studio no longer makes _themes_,
# it is no longer necessary to follow theme directory structure.
# - `SERVICE_WORKER_FILE_NAME`: The `sw.js` filename is suitable for almost
# all cases, and it does not vary by environment, so it should not be
# an environment variable. It has been hardcoded into package.json config.
#
###############################################################################
########## Custom domain configuration ########################################
#
# PWA Studio comes with a feature that autogenerates a custom domnain
# to aid in distinguishing projects from one another, easily adding HTTPS,
# and avoiding ServiceWorker collisions.
#
# See documentation for details.
# The following variables apply both to the development and staging modes.
#
# This activates the secure host feature.
MAGENTO_BUILDPACK_PROVIDE_SECURE_HOST=1
#
# By default your subdomain will be detected from your package.json name.
# Use this to override it.
# MAGENTO_BUILDPACK_SECURE_HOST_SUBDOMAIN='custom-value'
# This will prepend the uniquely generated domain with `custom-value`.
#
# By default your custom host will be a subdomain of `local.pwadev`.
# Use this to specify an entire domain, avoiding that TLD.
# MAGENTO_BUILDPACK_SECURE_HOST_EXACT_DOMAIN='my-favorite.pizza'
#
# This activates the "unique hash" feature. PWA Studio generates a unique
# sequence of letters and numbers, only 4 or 5 character long, to guarantee
# uniqueness among your projects. The hash and port names are generated from
# a hash of the current diredtory, so the URL stays constant if the instance
# stays in the same place.
# Set this to 0 to disable this feature.
MAGENTO_BUILDPACK_SECURE_HOST_ADD_UNIQUE_HASH=1
#
###############################################################################
########## UPWARD server production configuration #############################
#
# The current PWA Studio production server is built with NodeJS; it is an
# implementation of the UPWARD spec, and is theoretically swappable with
# any other UPWARD-compliant server, with minimal configuration or code
# changes. Since `upward-js` is the current default implementation, the
# following environment variables configure `upward-js` specifically.
#
# Give the server the location of the UPWARD YAML configuration file which
# specifies its behavior. **REQUIRED**. For Venia, this is automatically set:
UPWARD_JS_UPWARD_PATH=venia-upward.yml
#
# Tell the upward-js server to bind to a local address and port on launch.
# Default 1 (true). **REQUIRED** unless you have a custom production setup.
UPWARD_JS_BIND_LOCAL=1
#
# Tell the upward-js prod server to log the bound URL to stdout. Useful in
# testing and discovery scenarios, but may be disabled in production.
UPWARD_JS_LOG_URL=1
#
# Specify a port the upward-js prod-server will bind to. If unspecified, an
# open port will be found.
# UPWARD_JS_PORT=8008
#
###############################################################################
########## webpack-dev-server development configuration ######################
#
# Set variables for webpack-dev-server for editing and debugging scenarios.
#
# Set this to 1 (true) to force ServiceWorkers in development.
# ENABLE_SERVICE_WORKER_DEBUGGING=1
#
###############################################################################