|
1 | 1 | # Enable if connecting to a self-signed cert
|
2 | 2 | # NODE_TLS_REJECT_UNAUTHORIZED=0
|
3 | 3 |
|
| 4 | +# Token used for authenticating GraphQL introspection queries |
| 5 | +INTROSPECTION_TOKEN= |
| 6 | + |
| 7 | +# The CORS proxy prefix to use when bypassing CORS restrictions from WordPress server, Default: /proxy, This means for script module next app will make request NEXT_PUBLIC_FRONTEND_URL/proxy/{module-path} |
| 8 | +# NEXT_PUBLIC_CORS_PROXY_PREFIX=/proxy |
| 9 | + |
4 | 10 | # The headless frontend domain URL
|
5 | 11 | NEXT_PUBLIC_FRONTEND_URL=http://localhost:3000
|
6 | 12 |
|
7 |
| -NEXT_PUBLIC_WP_SITE_URL=https://headless-demo.local |
8 |
| - |
9 |
| -# The WordPress "frontend" domain URL |
10 |
| -NEXT_PUBLIC_WP_HOME_URL=https://headless-demo.local |
| 13 | +# Enable if you want to bypass CORS restrictions from WordPress server note: this feature is to bypass CORS restrictions for script modules. Default: process.env.NODE_ENV === 'development' |
| 14 | +# NEXT_PUBLIC_USE_CORS_PROXY=false |
11 | 15 |
|
12 | 16 | # The WordPress GraphQL endpoint
|
13 | 17 | NEXT_PUBLIC_WP_GRAPHQL_ENDPOINT=graphql
|
14 | 18 |
|
15 |
| -# The WordPress Uploads directory path |
16 |
| -# NEXT_PUBLIC_WP_UPLOADS_PATH=/wp-content/uploads |
| 19 | +# The WordPress "frontend" domain URL e.g. https://my-headless-site.local |
| 20 | +NEXT_PUBLIC_WP_HOME_URL= |
17 | 21 |
|
18 | 22 | # The WordPress REST URL Prefix
|
19 | 23 | # NEXT_PUBLIC_WP_REST_URL_PREFIX=/wp-json
|
20 | 24 |
|
21 |
| -# Token used for authenticating GraphQL introspection queries |
22 |
| -INTROSPECTION_TOKEN= |
23 |
| - |
24 |
| -# Enable if you want to bypass CORS restrictions from WordPress server note: this feature is to bypass CORS restrictions for script modules. Default: process.env.NODE_ENV === 'development' |
25 |
| -# NEXT_PUBLIC_USE_CORS_PROXY=false |
| 25 | +# NEXT_PUBLIC_WP_SITE_URL= |
26 | 26 |
|
27 |
| -# The CORS proxy prefix to use when bypassing CORS restrictions from WordPress server, Default: /proxy, This means for script module next app will make request NEXT_PUBLIC_FRONTEND_URL/proxy/{module-path} |
28 |
| -# NEXT_PUBLIC_CORS_PROXY_PREFIX=/proxy |
| 27 | +# The WordPress Uploads directory path |
| 28 | +# NEXT_PUBLIC_WP_UPLOADS_PATH=/wp-content/uploads |
0 commit comments